private static void handleParamDeprecation(Map<String, String> fromMap, Map<String, String> toMap,
      String deprecatedName, String newName, String newUsage) {
    if (fromMap.containsKey(deprecatedName)) {
      LOG.warn("***** JDBC param deprecation *****");
      LOG.warn("The use of " + deprecatedName + " is deprecated.");
      LOG.warn("Please use " + newName +" like so: " + newUsage);
      String paramValue = fromMap.remove(deprecatedName);
      toMap.put(newName, paramValue);
    }
  }
Remove the deprecatedName param from the fromMap and put the key value in the toMap.
Also log a deprecation message for the client.
@param fromMap
@param toMap
@param deprecatedName
@param newName
@param newUsage
jdbc/src/java/org/apache/hive/jdbc/Utils.java