if (log.isTraceEnabled()) { log.trace("Addding ack for xid:" + xid); }
if (trace) { log.trace("Addding ack for xid:" + xid); }
   public void addAck(Object xid, AckInfo ackInfo) throws JMSException   {      if (log.isTraceEnabled()) { log.trace("Addding ack for xid:" + xid); }      TxState tx = getTx(xid);      if (tx == null)      {         throw new JMSException("There is no transaction with id:" + xid);      }      tx.getAcks().add(ackInfo);   }