public static boolean getBoolean( String key, boolean def ) {
        String b = getProperty( key );
        if( b != null ) {
            def = b.toLowerCase().equals( "true" );
        }
        return def;
    }
public static boolean getBoolean ( String key , boolean def ) { String b = getProperty ( key ) ; if ( b != null ) { def = b . toLowerCase ( ) . equals ( "true" ) ; } return def ; }
Retrieve a boolean value. If the property is not found, the value of <code>def</code> is returned.