legacy/src/main/java/thredds/catalog/InvCatalogRef.java
public void release() {
    datasets = new java.util.ArrayList<>();
    proxy = null;
    useProxy = false;
    init = false;
  }
public void release() {
    datasets = new java.util.ArrayList<>();
    proxy = null;
    useProxy = false;
    init = false;
  }
Release resources - undo the read of the catalog. This is needed when crawling large catalogs.
For modest catalogs that you will repeatedly examine, do not use this method.