geopackage-sdk/src/main/java/mil/nga/geopackage/GeoPackageCache.java
private GeoPackage getOrOpen(String name, boolean writable, boolean cache) {
        GeoPackage geoPackage = get(name);
        if (geoPackage == null) {
            geoPackage = manager.open(name, writable);
            if (cache) {
                add(geoPackage);
            }
        }
        return geoPackage;
    }
private GeoPackage getOrOpen(String name, boolean writable, boolean cache) {
        GeoPackage geoPackage = get(name);
        if (geoPackage == null) {
            geoPackage = manager.open(name, writable);
            if (cache) {
                add(geoPackage);
            }
        }
        return geoPackage;
    }
private GeoPackage getOrOpen ( String name , boolean writable , boolean cache ) { GeoPackage geoPackage = get ( name ) ; if ( geoPackage == null ) { geoPackage = manager . open ( name , writable ) ; if ( cache ) { add ( geoPackage ) ; } } return geoPackage ; }
Get the cached GeoPackage or open and cache the GeoPackage

@param name     GeoPackage name
@param writable writable true to open as writable, false as read only
@param cache    true to cache opened GeoPackages
@return GeoPackage
Get the cached GeoPackage or open and cache the GeoPackage