private static String getCatalogType(Configuration conf, String catalogName) {
    if (catalogName != null) {
      String catalogType = conf.get(InputFormatConfig.catalogPropertyConfigKey(
          catalogName, CatalogUtil.ICEBERG_CATALOG_TYPE));
      if (catalogName.equals(ICEBERG_HADOOP_TABLE_NAME)) {
        return NO_CATALOG_TYPE;
      } else {
        return catalogType;
      }
    } else {
      String catalogType = conf.get(CatalogUtil.ICEBERG_CATALOG_TYPE);
      if (catalogType != null && catalogType.equals(LOCATION)) {
        return NO_CATALOG_TYPE;
      } else {
        return catalogType;
      }
    }
  }
Return the catalog type based on the catalog name.
<p>
See {@link Catalogs} documentation for catalog type resolution strategy.

@param conf global hive configuration
@param catalogName name of the catalog
@return type of the catalog, can be null
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/Catalogs.java