static Boolean convertToBoolean(Object o) {
    if (o.getClass() == Boolean.class) {
      return (Boolean) o;
    }

    switch (o.toString().toUpperCase()) {
      case "TRUE":
        return true;
      case "FALSE":
        return false;
      default:
        throw new IllegalArgumentException(
            String.format(
                "Unrecognized option for boolean: %s. Expected either true or false(case insensitive)",
                o));
    }
  }
Convert System Env key to Configuration key For Example : AMS_DATABASE_PASSWORD --->
ams.database.password AMS_SERVER__EXPOSE__HOST ---> ams.server-expose-host
amoro-common/src/main/java/org/apache/amoro/config/ConfigHelpers.java