code: public static void discard(MessageEndpointBase proxy)
      {
          // Ensure we are no longer holding any object references.
          proxy.ivMDB = null;
          proxy.ivMessageEndpointFactory = null;
          proxy.ivMethod = null;
          proxy.ivXAResource = null;
          proxy.ivRecoverableXAResource = false;
          proxy.container = null;
          proxy.ivEJSDeployedSupport = null;
          proxy.ivTransactionManager = null;
          proxy.ivThread = null;
      }
docs: Called after the pool discards the object. This gives the
  object an opportunity to perform any required clean up.