public static boolean getPropertyAsBoolean(final String name, final boolean defaultValue) {
        if (PropertiesManager.props == null) loadProps();
        boolean returnValue = defaultValue;
        try {
            returnValue = getPropertyAsBoolean(name);
        } catch (MissingPropertyException mpe) {
            // do nothing, since we already logged the missing property
        }
        return returnValue;
    }
public static boolean getPropertyAsBoolean ( final String name , final boolean defaultValue ) { if ( PropertiesManager . props == null ) loadProps ( ) ; boolean returnValue = defaultValue ; try { returnValue = getPropertyAsBoolean ( name ) ; } catch ( MissingPropertyException mpe ) { } return returnValue ; }
Get a property as a boolean, specifying a default value. If for any reason we are unable to
lookup the desired property, this method returns the supplied default value. This error
handling behavior makes this method suitable for calling from static initializers.

@param name - the name of the property to be accessed
@param defaultValue - default value that will be returned in the event of any error
@return the looked up property value, or the defaultValue if any problem.
@since 2.4