Yes, that works. Yesterday I ran out of ideas and that's why I created this post. I think this will be useful for somebody else in the future.

You can see the answer in StackOverflow also...