protected HttpServlet createServlet(Catalog catalog) {
    String authType = MetastoreConf.getVar(configuration, ConfVars.ICEBERG_CATALOG_SERVLET_AUTH);
    ServletSecurity security = new ServletSecurity(authType, configuration);
    return security.proxy(new HMSCatalogServlet(new HMSCatalogAdapter(catalog)));
  }
Creates the REST catalog servlet instance.
@param catalog the Iceberg catalog
@return the servlet
standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/HMSCatalogFactory.java