private static boolean propertyAsBoolean(
      Map<String, String> properties, String property, boolean defaultValue) {
    String value = properties.get(property);
    if (value != null) {
      return Boolean.parseBoolean(value);
    }
    return defaultValue;
  }
Copy property from source properties to target properties, support changing the key name.

@param fromProperties - from these properties
@param toProperties - to these properties
@param fromKey - from key
@param toKey - to key
amoro-common/src/main/java/org/apache/amoro/utils/CatalogUtil.java