code: public static boolean toBoolean(String value, boolean defaultValue)
      {
          return "true".equals(value) ? true : ("false".equals(value) ? false : defaultValue);
      }
docs: Determines whether the boolean value of the given string value.
  
  @param value        The value
  @param defaultValue The boolean value to use if the string value is neither 'true' nor 'false'
  @return The boolean value of the string