217218219220221222223224
if( value != null ) { return value; } else if( value == null && defaultValue != null ) { return defaultValue; } else { throw new InvalidConfigurationException( "Property " + propertyName + " does not exist in the configuration file and no default value is set" ); } }