}
    public void addContextNode(int contextId, NodeValue node) {        if (node.getImplementationType() != NodeValue.PERSISTENT_NODE)            return;        NodeProxy contextNode = (NodeProxy) node;        if (context == null) {            context = new ContextItem(contextId, contextNode);            return;        }        ContextItem next = context;        while (next != null) {            if (contextId == next.getContextId() && next.getNode().gid == contextNode.gid )                // Ignore duplicate context nodes                break;            if (next.getNextDirect() == null) {                next.setNextContextItem(new ContextItem(contextId, contextNode));                break;            }            next = next.getNextDirect();        }    }