public static Catalog getLastCatalog() {
    Reference<Catalog> soft = catalogRef.get();
    return soft != null ? soft.get() : null;
  }
Convenience soft reference to last catalog.
standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/HMSCatalogFactory.java