int testType = test.getType(); if (testType != Type.NODE && testType != Type.ELEMENT ) return NodeSet.EMPTY_SET;
	protected NodeSet getParents(		XQueryContext context,		NodeSet contextSet) {				//TODO : move to eval() ?		//Avoid unnecessary tests//		TODO : log this costly operation into the profiler ?				int testType = test.getType();		if (testType != Type.NODE && testType != Type.ELEMENT )				return NodeSet.EMPTY_SET;				if(test.isWildcardTest()) {			return contextSet.getParents(inPredicate);		} else {		    DocumentSet docs = getDocumentSet(contextSet);		    NodeSelector selector = new ParentSelector(contextSet, inPredicate);		    NodeSet result = context.getBroker().getElementIndex().findElementsByTagName(		    		ElementValue.ELEMENT, docs, test.getName(), selector		    );			return result;		}	}