if (log.isTraceEnabled()) { log.trace("Starting tx xid=" + xid); }
if (trace) { log.trace("Starting tx xid=" + xid); }
   public Xid startTx(Xid xid) throws XAException   {      if (log.isTraceEnabled()) { log.trace("Starting tx xid=" + xid); }      TxState state = getTx(xid);      if (state != null)      {         log.error("Cannot find transaction with xid:" + xid);                  throw new XAException(XAException.XAER_DUPID);      }      transactions.put(xid, new TxState());      return xid;   }