I tried to do what you want and finally succed it. You can see my post here :
There is a link to a github repository with my entire code. Hope it helps