public static boolean propertyAsBoolean(
      ReadableConfig config, ConfigOption<Boolean> configOption) {
    ConfigOption<Boolean> legacyProperty = getLegacyProperty(configOption);
    if (legacyProperty != null
        && config.getOptional(legacyProperty).isPresent()
        && !config.getOptional(configOption).isPresent()) {
      return config.get(legacyProperty);
    } else {
      return config.get(configOption);
    }
  }
PropertyUtil compatible with legacy flink properties
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/main/java/org/apache/amoro/flink/util/CompatibleFlinkPropertyUtil.java