public static String getProperty ( String name , String defaultValue ) { if ( PropertiesManager . props == null ) loadProps ( ) ; String returnValue = defaultValue ; try { returnValue = getProperty ( name ) ; } catch ( MissingPropertyException mpe ) { // Do nothing, since we have already recorded and logged the missing property. } return returnValue ; }
Get the value of the property with the given name . If the named property is not found returns the supplied default value . This error handling behavior makes this method attractive for use in static initializers .