if (log.isTraceEnabled()) { log.trace("Done the sends"); }
if (trace) { log.trace("Done the sends"); }
   private void processCommit(TxState txState, Transaction tx) throws JMSException   {      if (log.isTraceEnabled()) { log.trace("processing commit, there are " + txState.getMessages().size() + " messages and " + txState.getAcks().size() + " acks "); }            for(Iterator i = txState.getMessages().iterator(); i.hasNext(); )      {         Message m = (Message)i.next();         sendMessage(m, tx);         if (log.isTraceEnabled()) { log.trace("sent " + m); }      }            if (log.isTraceEnabled()) { log.trace("Done the sends"); }            //Then ack the acks      for(Iterator i = txState.getAcks().iterator(); i.hasNext(); )      {         AckInfo ack = (AckInfo)i.next();         acknowledge(ack.getMessageID(), ack.getConsumerID(), tx);         if (log.isTraceEnabled()) { log.trace("acked " + ack.getMessageID()); }      }            if (log.isTraceEnabled()) { log.trace("Done the acks"); }   }