public void addFilter(String name, String pathSpec, Filter filter, ServletHandler handler) {
    FilterHolder holder = new FilterHolder(filter);
    if (name != null) {
      holder.setName(name);
    }
    handler.addFilterWithMapping(holder, pathSpec, FilterMapping.ALL);
  }
Add a servlet holder to the provided webAppContext
@param name The name of the servlet (can be passed as null)
@param pathSpec The path spec for the servlet
@param holder The servlet holder to be added to the webAppContext
@param webAppContext The webAppContext to which the servlet will be added
common/src/java/org/apache/hive/http/HttpServer.java