code: public static boolean toBoolean(final String value)
      {
          String trimmedLowerValue = value.toLowerCase().trim();
          return trimmedLowerValue.equals("1")
              || trimmedLowerValue.equals("true")
              || trimmedLowerValue.equals("yes");
      }
docs: Converts a string to a boolean.
  
  <p>Note that {@link Boolean#parseBoolean(String)} is similar, but only
  exists from JDK 1.5 onwards, and only accepts 'true'.</p>
  
  @return true if the string is "1" or "true" or "yes", ignoring case and
  any leading or trailing spaces