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;
          }
          
          Resource webInf=getWebApplicationContext().getWebInf();
          // handle any WEB-INF descriptors
          if(webInf!=null&&webInf.isDirectory())
          {
              // do web.xml file
              Resource web=webInf.addPath("web.xml");
              if(!web.exists())
              {
                  log.info("No WEB-INF/web.xml in "+getWebApplicationContext().getWAR()
                          +". Serving files and default/dynamic servlets only");
              }
              else
              {
                  XmlParser.Node config=null;
                  config=xmlParser.parse(web.getURL());
                  initialize(config);
              }
          }
      }
docs: /* -------------------------------------------------------------------------------