mc.end(xid, XAResource.TMNOFLAGS);
mc.end(xid, XAResource.TMSUCCESS);
    public void rollback() throws ResourceException {         if (xid == null) {             throw new ResourceException("no local transaction active: can't rollback");         }                  synchronized(mc) {             try {                 mc.end(xid, XAResource.TMNOFLAGS);  //??? on flags --FBManagedConnection is its own XAResource                 mc.rollback(xid);             }             catch (XAException e) {                 throw new ResourceException("couldn't commit local transaction: " + e);             }             finally {                 xid = null;             }             if (c != null) {                 mc.notify(ConnectionEvent.LOCAL_TRANSACTION_ROLLEDBACK, c, null);             }         }     }