class MetastoreClientUtils {

  public static <K, V> Map<K, V> deepCopyMap(Map<K, V> originalMap) {
    Map<K, V> deepCopy = Maps.newHashMap();
    if (originalMap == null) {
      return deepCopy;
    }

    for (Map.Entry<K, V> entry : originalMap.entrySet()) {
      deepCopy.put(entry.getKey(), entry.getValue());
    }
    return deepCopy;
  }

  private  MetastoreClientUtils();

}