Can anyone help me on this?
I just posted an answer on stackoverflow. Let me know if anything remains unclear