public static Map<String, Object> convertConfigurationKeys(
      String prefix, Map<String, String> values) {
    return values.entrySet().stream()
        .filter(entry -> entry.getKey().startsWith(prefix))
        .collect(
            Collectors.toMap(
                entry ->
                    entry
                        .getKey()
                        .replaceFirst(prefix + "_", "")
                        .toLowerCase()
                        .replaceAll("(_{2,})", "-")
                        .replace("_", "."),
                Map.Entry::getValue));
  }
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