public <E extends Enum<E>> E getEnum(String name, Class<E> type, E defaultVal) {
    return containsKey(name) ? Enum.valueOf(type, getProperty(name)) : defaultVal;
  }
@param name The property name.
@param type The type of enum to parse.
@param defaultVal The default value to use if the property is not found.
@return The enum value.
ambry-api/src/main/java/com/github/ambry/config/VerifiableProperties.java