protected boolean getBooleanSetting(String name, boolean defaultValue) {
        if (settings.containsKey(name)) {

            String value = settings.get(name).toString();
            return Boolean.parseBoolean(value);

        } else {
            return defaultValue;
        }
    }
protected boolean getBooleanSetting ( String name , boolean defaultValue ) { if ( settings . containsKey ( name ) ) { String value = settings . get ( name ) . toString ( ) ; return Boolean . parseBoolean ( value ) ; } else { return defaultValue ; } }
Convert value of this setting to a Java <b>boolean</b> (via {@link Boolean#parseBoolean(String)}).

If the property is not found, the <code>defaultValue</code> is returned.

@param name         name of the property
@param defaultValue default value if the property is not defined.
@return int value of the property or <code>defaultValue</code> if the property is not defined.