public boolean getBoolean(String name, boolean defaultVal) {
    if (!containsKey(name)) {
      return defaultVal;
    } else {
      String v = getProperty(name);
      if (v.compareTo("true") == 0 || v.compareTo("false") == 0) {
        return Boolean.parseBoolean(v);
      } else {
        throw new IllegalArgumentException(name + " has value " + v + " which is not true or false.");
      }
    }
  }
Read a boolean value from the properties instance
@param name The property name
@param defaultVal The default value to use if the property is not found
@return the boolean value
ambry-api/src/main/java/com/github/ambry/config/VerifiableProperties.java