@SuppressWarnings("unused")
  public static ServletServerBuilder.Descriptor createServlet(Configuration configuration) {
    try {
      HMSCatalogFactory hms = new HMSCatalogFactory(configuration, null);
      HttpServlet servlet = hms.createServlet();
      if (servlet != null) {
        return new ServletServerBuilder.Descriptor(hms.getPort(), hms.getPath(), servlet);
      }
    } catch (IOException exception) {
      LOG.error("failed to create servlet ", exception);
    }
    return null;
  }
Factory method to describe Iceberg servlet.
<p>This method name is found through configuration as {@link MetastoreConf.ConfVars#ICEBERG_CATALOG_SERVLET_FACTORY}
and looked up through reflection to start from HMS.</p>

@param configuration the configuration
@return the servlet descriptor instance
standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/HMSCatalogFactory.java