docs: public void terminate() {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d532639.2
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "terminate");
  
          //-----------------------------
          // Stop passivation activity
          //-----------------------------
          if (passivator != null) // May be null if initialize failed d162687.1
              passivator.terminate();
  
          //-----------------------------
          // Delete all passivated beans
          //-----------------------------
          if (activator != null) // May be null if initialize failed d162687.1
              activator.terminate();
  
          //-------------------------------------
          // Unregister from the transport layer
          //-------------------------------------
          if (wrapperManager != null) // May be null if initialize failed d162687.1
              wrapperManager.destroy();
  
          //d583637 - start
          //-------------------------------------
          // Unset static instance references
          //-------------------------------------
          defaultContainer = null;
          homeOfHomes = null;
  
          activator = null;
          passivator = null;
          wrapperManager = null;
          poolManager.cancel();
          poolManager = null;
          //d583637 - end
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "terminate");
      }