if (test.getType() != Type.ELEMENT)
int testType = test.getType(); if (testType != Type.NODE && testType != Type.ELEMENT )
	protected NodeSet getParents(		XQueryContext context,		NodeSet contextSet) {		if (test.getType() != 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;		}	}