if (log.isTraceEnabled()) { log.trace("Ending xid=" + xid + ", success=" + success); }
if (trace) { log.trace("Ending xid=" + xid + ", success=" + success); }
   public void endTx(Xid xid, boolean success) throws XAException   {      if (log.isTraceEnabled()) { log.trace("Ending xid=" + xid + ", success=" + success); }            TxState state = getTx(xid);      if (state == null)      {         log.error("Cannot find transaction with xid:" + xid);                  throw new XAException(XAException.XAER_NOTA);      }               state.setState(TxState.TX_ENDED);   }