parent.addContextNode(p);
parent.addContextNode(current);
	public NodeSet getParents(boolean rememberContext) {		NodeSet parents = new ExtArrayNodeSet();		 		NodeProxy parent = null;		for (Iterator i = iterator(); i.hasNext();) {            NodeProxy p = (NodeProxy) i.next();			// calculate parent's gid            long pid = XMLUtil.getParentId(p.getDocument(), p.getGID());                        if (pid != NodeProxy.DOCUMENT_NODE_GID &&                     //Remove the temorary nodes wrapper element                     //TODO : optimize this !!!                    !(pid == NodeProxy.DOCUMENT_ELEMENT_GID && p.getDocument().getCollection().isTempCollection())) {                				if (parent == null || parent.getDocument().getDocId() != p.getDocument().getDocId() || pid != parent.getGID())                                     parent = new NodeProxy(p.getDocument(), pid, Node.ELEMENT_NODE);				if (rememberContext)					parent.addContextNode(p);				else					parent.copyContext(p);                parents.add(parent);			}		}		return parents;	}