code: public static String getNodeFromPath(String path)
      {
          PathUtils.validatePath(path);
          int i = path.lastIndexOf(PATH_SEPARATOR);
          if ( i < 0 )
          {
              return path;
          }
          if ( (i + 1) >= path.length() )
          {
              return "";
          }
          return path.substring(i + 1);
      }
docs: Given a full path, return the node name. i.e. "/one/two/three" will return "three"
  
  @param path the path
  @return the node