public static Duration convertToDuration(Object o) {
    if (o.getClass() == Duration.class) {
      return (Duration) o;
    }

    return TimeUtils.parseDuration(o.toString());
  }
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