Thread.sleep(2000);
Thread.sleep(1000);
   protected List sendMessages(String condition, boolean persistent, PostOffice office, int num, Transaction tx) throws Exception   {      List list = new ArrayList();            for (int i = 0; i < num; i++)      {                  Message msg = CoreMessageFactory.createCoreMessage(msgCount++, persistent, null);                        MessageReference ref = ms.reference(msg);                           boolean routed = office.route(ref, condition, null);                           assertTrue(routed);                  list.add(msg);      }            Thread.sleep(2000);            return list;   }