protected final String getValue ( final String propertyName , String defaultValue ) { String value = getValue ( propertyName ) ; if ( value == null ) { if ( defaultValue == null ) { LOGGER . warn ( "Property '{}' is not specified in " + getClass ( ) . getName ( ) + ", and no default is specified." , propertyName ) ; } value = defaultValue ; } return value ; }
Returns the String value of the given property name or the given default if the given property name does not exist .