code: public boolean getBooleanValue(String name, boolean defaultValue) {
  
          String value = getValue(name);
  
          if (value == null) {
              return defaultValue;
          } else {
              return value.equals("true");
          }
      }
docs: Get the value of the given option as a boolean, or the given default
  value if unspecified. If specified, the value is assumed to be
  <code>true</code> if given as "true", regardless of case. All other
  values are assumed to be <code>false</code>.