Getting null values when calling getQueue()

Dear frnds,

I am on a project in Jitsi and open fire combined, i have tried to get the corresponding queues of an agent who is a member of a workgroup. I have used WorkgroupQueue class and getQueue() to get the queues but it is returning null, and the user which i log in using the smack is shown as logged in in Open fire server but that user is not getting online in the fastpath plugin of openfire server. Why does this happens, is there any special connection needed to fastpath server. I have used traditional XMPPConnection object and connected to open fire using port 5222. If anyone knows the solution plz help because my deadline is fast approaching and i will be black listed if it is not completed…