docs: public void delistFromCleanup(OnePhaseXAResource resource) throws IllegalStateException
      {
          if (tc.isEntryEnabled()) Tr.entry(tc, "delistFromCleanup", resource);
  
          if (LocalTranCurrentImpl.globalTranExists())
          {
              final IllegalStateException ise = new IllegalStateException("Cannot delist Resource from cleanup. A Global transaction is active.");
              FFDCFilter.processException(ise, "com.ibm.tx.ltc.LocalTranCoordImpl.delistFromCleanup", "525", this);
              Tr.error(tc, "ERR_DELIST_TX_GLB_ACT");
              if (tc.isEntryEnabled()) Tr.exit(tc, "delistFromCleanup", ise);
              throw ise;
          }
  
          if (_cleanupResources == null)
          {
              final IllegalStateException ise = new IllegalStateException("Cannot delist Resource. It is not enlisted for cleanup with this LocalTransactionCoordinator.");
              FFDCFilter.processException(ise, "com.ibm.tx.ltc.LocalTranCoordImpl.delistFromCleanup", "534", this);
              Tr.error(tc, "ERR_DELIST_NOT_ENLISTED");
              if (tc.isEntryEnabled()) Tr.exit(tc, "delistFromCleanup", ise);
              throw ise;
          }
  
          if ((_state == Running) || (_state == Suspended))
          {
              int index = _cleanupResources.indexOf(resource);
  
              if (index == -1)
              {
                  final IllegalStateException ise = new IllegalStateException("Cannot delist Resource. It is not enlisted for cleanup with this LocalTransactionCoordinator.");
                  FFDCFilter.processException(ise, "com.ibm.tx.ltc.LocalTranCoordImpl.delistFromCleanup", "547", this);
                  Tr.error(tc, "ERR_DELIST_NOT_ENLISTED");
                  if (tc.isEntryEnabled()) Tr.exit(tc, "delistFromCleanup", ise);
                  throw ise;
              }
  
              _cleanupResources.remove(index);
          }
          // Defect 156223
          // 
          // If we are completing or completed then we can't allow the 
          // delist but throwing an exception may cause problems in
          // the ConnectionManager so we simply do nothing.
  
          if (tc.isEntryEnabled()) Tr.exit(tc, "delistFromCleanup");
      }