properly searching through queue.xml in java apps with one or more queues defined