if(parentId.getTreeLevel() == 1 && current.getDocument().getCollection().isTempCollection()) continue;
    protected NodeSet getSiblings(XQueryContext context, NodeSet contextSet) {        if (test.isWildcardTest()) {            NodeSet result = new ExtArrayNodeSet(contextSet.getLength());            SiblingVisitor visitor = new SiblingVisitor(result);            for (Iterator i = contextSet.iterator(); i.hasNext();) {                NodeProxy current = (NodeProxy) i.next();                NodeId parentId = current.getNodeId().getParentId();                StoredNode parentNode = (StoredNode) context.getBroker().objectWith(current.getOwnerDocument(), parentId);            	visitor.setContext(current);            	parentNode.accept(visitor);            }            return result;        } else {            DocumentSet docs = getDocumentSet(contextSet);            if (currentSet == null || currentDocs == null                    || !(docs.equals(currentDocs))) {                ElementIndex index = context.getBroker().getElementIndex();                if (context.getProfiler().isEnabled())                    context.getProfiler().message(this, Profiler.OPTIMIZATIONS,                            "OPTIMIZATION",                            "using index '" + index.toString() + "'");                currentSet = index.findElementsByTagName(ElementValue.ELEMENT,                        docs, test.getName(), null);                currentDocs = docs;                registerUpdateListener();            }            switch (axis) {                case Constants.PRECEDING_SIBLING_AXIS:                    return currentSet.selectPrecedingSiblings(contextSet, contextId);                case Constants.FOLLOWING_SIBLING_AXIS:                    return currentSet.selectFollowingSiblings(contextSet, contextId);                default:                    throw new IllegalArgumentException(                            "Unsupported axis specified");            }        }    }