protected void configureRootHandler(ServletContextHandler root) {
    configureHandlerCompression(root);
    configureAdditionalContentTypes(root);
    root.setContextPath(CONTEXT_PATH);

    AmbariErrorHandler ambariErrorHandler = injector.getInstance(AmbariErrorHandler.class);
    ambariErrorHandler.setShowStacks(configs.isServerShowErrorStacks());
    root.setErrorHandler(ambariErrorHandler);

    root.setMaxFormContentSize(-1);

    /* Configure web app context */
    root.setResourceBase(configs.getWebAppDir());
  }
Performs basic configuration of root handler with static values and values
from configuration file.

@param root root handler
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java