docs: @Override
      public final void postInvoke(int id, EJSDeployedSupport s)
                      throws RemoteException
      {
          if (state == DESTROYED) {
              return;
          }
          ContainerTx tx = null;
          if (null == ivContainerTx) { //d170394
              tx = ivContainerTx;
          } else {
              tx = container.getCurrentTx(false);
          }
  
          //167937 - discard bean if BMT was started and is still active.
  
          if (tx != null && tx.isBmtActive(s.methodInfo))
          {
              // BMT is still active.  Discard bean and let the BeanManaged.postInvoke
              // do the rollback and throwing of the exception.
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc,
                           "Stateless SB method is not allowed to leave a BMT active. " +
                                           "Discarding bean.");
              discard();
          }
  
          ivContainerTx = null;//d170394
      }