code: public boolean getBoolean(String name, boolean defaultValue) {
      String valueString = getTrimmed(name);
      if (null == valueString || "".equals(valueString)) {
        return defaultValue;
      }
  
      valueString = valueString.toLowerCase();
  
      if ("true".equals(valueString)) {
        return true;
      } else if ("false".equals(valueString)) {
        return false;
      } else {
        return defaultValue;
      }
    }
docs: Get the value of the <code>name</code> property as a <code>boolean</code>.
  If no such property is specified, or if the specified value is not a valid
  <code>boolean</code>, then <code>defaultValue</code> is returned.
  
  @param name property name.
  @param defaultValue default value.
  @return property value as a <code>boolean</code>,
  or <code>defaultValue</code>.