public static final String getString ( Properties cfg , String key , String defaultValue ) { if ( cfg == null ) { return defaultValue ; } else { String propValue = cfg . getProperty ( key ) ; return propValue == null ? defaultValue : propValue ; } }
Get the string property or defaults if not present