code: public void stoppingModule(EJBModuleMetaDataImpl mmd) { // F743-26072
          boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "stoppingModule: " + mmd.getJ2EEName());
  
          // If the application is stopping (rather than a single module), then
          // we don't need to do anything special.
          if (!ivStopping) {
              mmd.ivStopping = true;
              ivModules.remove(mmd);
  
              try {
                  beginStopping(false, mmd.getJ2EEName(), Collections.singletonList(mmd));
              } finally {
                  // If fine-grained module start failed, be sure to clear
                  // internal state.
                  ivSingletonDependencies = null;
                  ivStartupSingletonList = null;
                  ivQueuedNonPersistentTimers = null;
              }
          }
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "stoppingModule");
      }
docs: Notification that a module within this application will begin stopping. This method
  should never throw an exception.
  
  @param mmd
  the module