code: public synchronized ServletHandler getServletHandler()
      {
          if (_webAppHandler == null)
          {
              _webAppHandler= (WebApplicationHandler)getHandler(WebApplicationHandler.class);
              if (_webAppHandler == null)
              {
                  if (getHandler(ServletHandler.class) != null)
                      throw new IllegalStateException("Cannot have ServletHandler in WebApplicationContext");
                  _webAppHandler= new WebApplicationHandler();
                  addHandler(_webAppHandler);
              }
          }
          return _webAppHandler;
      }
docs: Get the context ServletHandler.
  Conveniance method. If no ServletHandler exists, a new one is added to
  the context.  This derivation of the method creates a
  WebApplicationHandler extension of ServletHandler.
  @return WebApplicationHandler