if (mcf.lookupXid(id) == null) {
isc_tr_handle committingTr = mcf.getTrHandleForXid(id); if (committingTr == null) {
    public void commit(Xid id, boolean twoPhase) throws XAException {        if (log!=null) log.debug("Commit called: " + id);        if (mcf.lookupXid(id) == null) {            throw new XAException("commit called with unknown transaction");        }        if (mcf.lookupXid(id) == currentTr) {            throw new XAException("commit called with current xid");        }        mcf.commit(id);    }