public static String getNodeName(String path) {
    return path.substring(path.lastIndexOf("/") + 1);
  }
Get the name of the current node from the specified fully-qualified path.
@param path fully-qualified path
@return name of the current node
hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java