log.debug("End called: " + id);
if (log!=null) log.debug("End called: " + id);
    public void end(Xid id, int flags) throws javax.transaction.xa.XAException {       log.debug("End called: " + id);        if (currentTr == null) {            //XAException xae = new XAException("end called with no transaction associated");           log.debug("end called with no transaction associated: " + id + ", flags: " + flags);//, new Exception());           //throw xae;           return;        }        if (mcf.lookupXid(id) != currentTr) {            throw new XAException("end called with wrong xid");        }        currentTr = null;    }