code: protected static String getPath(String fullPath)
     {
        int sl = fullPath.lastIndexOf('/');
        return sl > 0 ? "/" + fullPath.substring(0, sl) : "/";
     }
docs: Extract path to node's parent from full path.
  
  @param fullPath full path to node
  @return node's parent path