chosenQueue = queue;
if (cnt > maxMessages) { maxMessages = cnt;  chosenQueue = queue; }
   public ClusteredQueue chooseQueue(List queues)   {      Iterator iter = queues.iterator();            ClusteredQueue chosenQueue = null;            int maxMessages = 0;            while (iter.hasNext())      {         ClusteredQueue queue = (ClusteredQueue)iter.next();                  if (!queue.isLocal())         {            QueueStats stats = queue.getStats();                        int cnt = stats.getMessageCount();                        if (cnt > maxMessages)            {               maxMessages = cnt;                              chosenQueue = queue;            }         }      }            return chosenQueue;   }