protected static void setLastCatalog(Catalog catalog) {
    catalogRef.set(new SoftReference<>(catalog));
  }
Convenience soft reference to last catalog.
standalone-metastore/metastore-rest-catalog/src/main/java/org/apache/iceberg/rest/HMSCatalogFactory.java