code: public boolean closeIfCached(T geoPackage) {
  		boolean closed = false;
  		if (geoPackage != null) {
  			T cached = get(geoPackage.getName());
  			if (cached != null && cached == geoPackage) {
  				closed = close(geoPackage.getName());
  			}
  		}
  		return closed;
  	}
docs: Close the GeoPackage if it is cached (same GeoPackage instance)
  
  @param geoPackage
  GeoPackage
  @return true if closed
  @since 3.1.0