if (log.isTraceEnabled()) { log.trace("Cancelling deliveries for transaction"); }
if (trace) { log.trace("Cancelling deliveries for transaction"); }
   private void cancelDeliveriesForTransaction(TxState txState) throws JMSException   {      if (log.isTraceEnabled()) { log.trace("Cancelling deliveries for transaction"); }            //On a rollback of a transaction (1PC) we cancel deliveries of any messages      //delivered in the tx            //Need to cancel in reverse order in order to retain delivery order            List acks = txState.getAcks();      for (int i = acks.size() - 1; i >= 0; i--)      {            AckInfo ack = (AckInfo)acks.get(i);         cancel(ack.getMessageID(), ack.getConsumerID());      }         }