code: protected HashMap<String, INode> createHash(IContext context) {
          HashMap<String, INode> result = new HashMap<String, INode>();
  
          int nodeCount = 0;
          for (INode node : context.getNodesList()) {
              result.put(getNodePathToRoot(node), node);
              nodeCount++;
          }
  
          if (log.isEnabledFor(Level.INFO)) {
              log.info("Created hash for " + nodeCount + " nodes...");
          }
  
          return result;
      }
docs: Creates hash map for nodes which contains path from root to node for each node.
  
  @param context a context
  @return a hash table which contains path from root to node for each node