diff --git a/src/main/java/com/redhat/trie/Util.java b/src/main/java/com/redhat/trie/Util.java index 499268d..1a5c2f5 100644 --- a/src/main/java/com/redhat/trie/Util.java +++ b/src/main/java/com/redhat/trie/Util.java @@ -37,8 +37,12 @@ public class Util { this.ctx = new NodeContext(); } + NodeContext getContext() { + return this.ctx; + } + public PathNode makePathTree(List contents, PathNode parent) { - PathNode endMarker = new PathNode(this.ctx); + PathNode endMarker = new PathNode(getContext()); for (String path : contents) { StringTokenizer st = new StringTokenizer(path, "/"); makePathForURL(st, parent, endMarker);