Click on root queue will show the complete applications
But click on the leaf queue is not filtering the application related to the the clicked queue.
The regular expression seems to be wrong
1. Suppose queue name is b
them the above expression will try to substr at index 1
q.lastIndexOf(':') = -1
which is wrong. its should look at the 0 index.
2. if queue name is ab.x
then it will parse it to .x
but it should be x