private boolean queryUseStaticCatalog ( ) { String staticCatalog = System . getProperty ( pStatic ) ; if ( useStaticCatalog == null ) { if ( resources == null ) readProperties ( ) ; if ( resources == null ) return defaultUseStaticCatalog ; try { staticCatalog = resources . getString ( "static-catalog" ) ; } catch ( MissingResourceException e ) { return defaultUseStaticCatalog ; } } if ( staticCatalog == null ) { return defaultUseStaticCatalog ; } return ( staticCatalog . equalsIgnoreCase ( "true" ) || staticCatalog . equalsIgnoreCase ( "yes" ) || staticCatalog . equalsIgnoreCase ( "1" ) ) ; }
Obtain the static - catalog setting from the properties .