public static void copyConf(Configuration src, Configuration dest) {
    dest.clear();
    for (Map.Entry<String, String> el : src) {
      dest.set(el.getKey(), el.getValue());
    }
  }
Replace the contents of dest with the contents of src
@param src
@param dest
hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HCatUtil.java