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