public static <T> void copyProperty(
      Map<String, String> fromProperties,
      Map<String, T> toProperties,
      String fromKey,
      String toKey) {
    if (StringUtils.isNotEmpty(fromProperties.get(fromKey))) {
      toProperties.put(toKey, (T) fromProperties.get(fromKey));
    }
  }
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