public static boolean getBoolProperty ( final MessageResources msg , final String pname , final boolean def ) throws Throwable { String p = msg . getMessage ( pname ) ; if ( p == null ) { return def ; } return Boolean . valueOf ( p ) ; }
Return a boolean property value or the default