code: private static boolean toBoolean(String value, boolean defaultValue) {
  
  	if (value == null || value.trim().length() == 0) return defaultValue;
  
  	try {
  	    return Caster.toBooleanValue(value.trim());
  	}
  	catch (PageException e) {
  	    return defaultValue;
  	}
      }
docs: cast a string value to a boolean
  
  @param value String value represent a booolean ("yes", "no","true" aso.)
  @param defaultValue if can't cast to a boolean is value will be returned
  @return boolean value