code: public static <T extends Enum<T>> T getEnumValue(String primaryKey, Class<T> enumClazz) {
          String val = (String) CFG.get(primaryKey);
          if (val == null) {
              throw new SofaRpcRuntimeException("Not Found Key: " + primaryKey);
          } else {
              return Enum.valueOf(enumClazz, val);
          }
      }
docs: Gets enum value.
  
  @param <T>        the type parameter
  @param primaryKey the primary key
  @param enumClazz  the enum clazz
  @return the enum value