code: protected String getNodePathToRoot(INode node) {
          StringBuilder sb = new StringBuilder();
          INode parent = node;
          while (null != parent) {
              if (parent.getNodeData().getName().contains("\\")) {
                  log.debug("source: replacing \\ in: " + parent.getNodeData().getName());
                  sb.insert(0, "\\" + parent.getNodeData().getName().replaceAll("\\\\", "/"));
              } else {
                  sb.insert(0, "\\" + parent.getNodeData().getName());
              }
              parent = parent.getParent();
          }
          return sb.toString();
      }
docs: Gets the path of a node from root for hash mapping.
  
  @param node the interface of data structure of input node
  @return the string of the path from root to node