if (trace)
if (log.isTraceEnabled()) {
   public void end(Xid xid, int flags) throws XAException   {      if (trace)         log.trace("End xid=" + xid + ", flags=" + flags + " " +this);      synchronized (this)      {         switch (flags)         {            case TMSUSPEND :               unsetCurrentTransactionId(xid);               rm.suspendTx(xid);               break;            case TMFAIL :               unsetCurrentTransactionId(xid);               rm.endTx(xid, false);               break;            case TMSUCCESS :               unsetCurrentTransactionId(xid);               rm.endTx(xid, true);               break;         }      }   }