@Override
  public boolean delistResource(XAResource xaRes, int flag)
      throws IllegalStateException, SystemException {
    gtx = tm.getGlobalTransaction();
    if (gtx == null) {
      String exception =
          "TransactionImpl::delistResource: No global transaction exists";
      LogWriter writer = TransactionUtils.getLogWriter();
      if (writer.fineEnabled()) {
        writer.fine(exception);
      }
      throw new SystemException(exception);
    }
    return gtx.delistResource(xaRes, flag);
  }
Disassociate the resource specified from the global transaction. associated with this
transaction

@param xaRes XAResource to be delisted
@param flag One of the values of TMSUCCESS, TMSUSPEND, or TMFAIL.
@return true, if resource was delisted successfully, otherwise false.
@throws SystemException Thrown if the transaction manager encounters an unexpected error
        condition.
@throws IllegalStateException Thrown if the transaction in the target object is not active.

@see javax.transaction.Transaction#delistResource(javax.transaction.xa.XAResource, int)
geode-core/src/main/java/org/apache/geode/internal/jta/TransactionImpl.java