public static final boolean getBooleanValue ( Properties cfg , String key , boolean defaultValue ) { String propValue = cfg . getProperty ( key ) ; if ( propValue == null ) { return defaultValue ; } else { return parseBoolean ( propValue , "Property '" + key + "' needs to be either literal 'true' or 'false'" ) ; } }
Extracts a boolean value from configuration properties