private static String getLastObjectName(String parent, HiveLockObject key) {
    return "/" + parent + "/" + key.getName();
  }
@param key    object to be locked
Get the name of the last string. For eg. if you need to lock db/T/ds=1=/hr=1,
the last name would be db/T/ds=1/hr=1
ql/src/java/org/apache/hadoop/hive/ql/lockmgr/zookeeper/ZooKeeperHiveLockManager.java