code: @Override
      public synchronized void serverStopping() {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.entry(tc, "serverStopping", "generate in progress = " + generateInProgress);
          }
          serverIsStopping = true;
          // Wait for up to 20 seconds for plugin generation to complete.
          for (int  i=0 ; i<40 && generateInProgress; i++) {
               try {
                  Thread.sleep(500);
               } catch (InterruptedException e) {
                  // don't bother sleeping again.
                  i=40;
              }
          }
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.exit(tc, "serverStopping");
          }
  
      }
docs: /* (non-Javadoc)
  @see com.ibm.wsspi.kernel.service.utils.ServerQuiesceListener#serverStopping()