code: public void destroy()
      {
          if (isStarted())
              throw new IllegalStateException("Started");
  
          if (_components!=null && _eventListeners!=null)
          {
              for (int c=0;c<LazyList.size(_components);c++)
              {
                  Object o=LazyList.get(_components,c);
                  if (o instanceof HttpContext )
                      ((HttpContext)o).destroy();
                  
                  ComponentEvent event = new ComponentEvent(this,o);
                  for(int i=0;i<LazyList.size(_eventListeners);i++)
                  {
                      EventListener listener=(EventListener)LazyList.get(_eventListeners,i);
                      if (listener instanceof ComponentListener)
                          ((ComponentListener)listener).removeComponent(event);
                  }
              }
          }
          
          _components=null;
          _eventListeners=null;
      }
docs: Destroy a stopped server.
  Remove all components and send notifications to all event
  listeners. The HttpServer must be stopped before it can be destroyed.