WebAppContext createWebAppContext(Builder b) throws FileNotFoundException {
    WebAppContext ctx = new WebAppContext();
    setContextAttributes(ctx.getServletContext(), b.contextAttrs);
    ctx.getServletContext().getSessionCookieConfig().setHttpOnly(true);
    ctx.setDisplayName(b.name);
    ctx.setContextPath(b.contextPath);
    ctx.setWar(getWebAppsPath(b.name) + "/" + b.name);
    return ctx;
  }
Create the web context for the application of specified name
common/src/java/org/apache/hive/http/HttpServer.java