public static boolean computeBooleanFromString(String stringBoolean,boolean defaultValue){
  if (stringBoolean == null)   return defaultValue;
 else   if (stringBoolean.equalsIgnoreCase("true"))   return true;
 else   if (stringBoolean.equalsIgnoreCase("false"))   return false;
 else   throw new IllegalArgumentException("Property value must be \"true\" or \"false\" instead of \"" + stringBoolean + "\"");
}

public static boolean computeBooleanFromString ( String stringBoolean , boolean defaultValue ) { if ( stringBoolean == null ) return defaultValue ; else if ( stringBoolean . equalsIgnoreCase ( "true" ) ) return true ; else if ( stringBoolean . equalsIgnoreCase ( "false" ) ) return false ; else throw new IllegalArgumentException ( "Property value must be \"true\" or \"false\" instead of \"" + stringBoolean + "\"" ) ; }
computes a boolean value from a string value retrieved from a property in the given map .
