code: public WebApplicationContext addWebApplication(String virtualHost,
                                                     String contextPathSpec,
                                                     String webApp)
          throws IOException
      {
          WebApplicationContext appContext =
              newWebApplicationContext(webApp);
          appContext.setContextPath(contextPathSpec);
          addContext(virtualHost,appContext);
          if(log.isDebugEnabled())log.debug("Web Application "+appContext+" added");
          return appContext;
      }
docs: Add Web Application.
  @param virtualHost Virtual host name or null
  @param contextPathSpec The context path spec. Which must be of
  the form / or /path/*
  @param webApp The Web application directory or WAR file.
  @return The WebApplicationContext
  @exception IOException