code: protected String getWebAppsPath() throws IOException {
      URL url = getClass().getClassLoader().getResource("webapps");
      if (url == null) 
        throw new IOException("webapps not found in CLASSPATH"); 
      return url.toString();
    }
docs: Get the pathname to the webapps files.
  @return the pathname as a URL
  @throws IOException if 'webapps' directory cannot be found on CLASSPATH.