public HttpServlet proxy(HttpServlet servlet) {
    try {
      init();
    } catch (ServletException e) {
      LOG.error("Unable to proxy security for servlet {}", servlet.toString(), e);
      return null;
    }
    return new ProxyServlet(servlet);
  }
Creates a proxy servlet.
@param servlet the servlet to serve within this security context
@return a servlet instance or null if security initialization fails
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ServletSecurity.java