public boolean getBoolean(String key, boolean defaultValue) {
		Object o = getObject(key);
		if (o == null) {
			return defaultValue;
		}
		boolean b = defaultValue;
		try {
			b = Boolean.parseBoolean(o.toString());
		}
		catch (Exception e) {
			throw new IllegalArgumentException("Object ["+o+"] associated with key ["+key+"] is not of type Boolean.");
		}
		return b;
	}
public boolean getBoolean ( String key , boolean defaultValue ) { Object o = getObject ( key ) ; if ( o == null ) { return defaultValue ; } boolean b = defaultValue ; try { b = Boolean . parseBoolean ( o . toString ( ) ) ; } catch ( Exception e ) { throw new IllegalArgumentException ( "Object [" + o + "] associated with key [" + key + "] is not of type Boolean." ) ; } return b ; }
Get the boolean value, or the defaultValue if not found.
@param key The key to search for.
@param defaultValue the default value
@return The value, or defaultValue if not found.