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