code: public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException,
                                                                      SystemException
     {
        if (status == Status.STATUS_UNKNOWN)
           throw new IllegalStateException("Status unknown");
  
        if (status != Status.STATUS_ACTIVE && status != Status.STATUS_MARKED_ROLLBACK)
           throw new IllegalStateException("Status not valid");
  
        return true;
     }
docs: {@inheritDoc}