code: public void configureWebApp () throws Exception
      {
          //cannot configure if the _context is already started
          if (_context.isStarted())
          {
              if (log.isDebugEnabled()){log.debug("Cannot configure webapp after it is started");};
              return;
          }
          
          if(log.isDebugEnabled())
              log.debug("Configuring web-jetty.xml");
          
          Resource webInf=getWebApplicationContext().getWebInf();
          // handle any WEB-INF descriptors
          if(webInf!=null&&webInf.isDirectory())
          {
              // do jetty.xml file
              Resource jetty=webInf.addPath("web-jetty.xml");
              if(!jetty.exists())
                  jetty=webInf.addPath("jetty-web.xml");
              if(!getWebApplicationContext().isIgnoreWebJetty()&&jetty.exists())
              {
                  
                  // Give permission to see Jetty classes
                  String[] old_server_classes = _context.getServerClasses();
                  String[] server_classes = new String[1+(old_server_classes==null?0:old_server_classes.length)];
                  server_classes[0]="-org.browsermob.proxy.jetty.";
                  if (server_classes!=null)
                      System.arraycopy(old_server_classes, 0, server_classes, 1, old_server_classes.length);
                  
                  try
                  {
                      _context.setServerClasses(server_classes);
                      if(log.isDebugEnabled())
                          log.debug("Configure: "+jetty);
                      
                      XmlConfiguration jetty_config=new XmlConfiguration(jetty.getURL());
                      jetty_config.configure(getWebApplicationContext());
                  }
                  finally
                  {
                      if (_context.getServerClasses()==server_classes)
                          _context.setServerClasses(old_server_classes);
                  }
              }
          }
          
      }
docs: configureWebApp
  Apply web-jetty.xml configuration
  @see org.browsermob.proxy.jetty.jetty.servlet.WebApplicationContext.Configuration#configureWebApp()