/** * Returns the value of the attribute specified by its name as a * <code>boolean</code>. * * @param name the name of the attribute * @param defaultValue the default value to return if value malformed or empty * @return the value */ public boolean getAttributeAsBoolean( final String name, final boolean defaultValue ) { try { return getAttributeAsBoolean( name ); } catch( final ConfigurationException ce ) { return defaultValue; } }