Value resultValue = expr.eval(documentSet, null, null);
Value resultValue = expr.eval(context, documentSet, null, null);
	private List processQuery(String select) throws SAXException {		try {			XPathLexer lexer = new XPathLexer(new StringReader(select));			XPathParser parser = new XPathParser(pool, user, lexer);			PathExpr expr = new PathExpr(pool);			RootNode root = new RootNode(pool);			expr.add(root);			parser.expr(expr);			if (parser.foundErrors())				throw new SAXException(parser.getErrorMsg());			DocumentSet ndocs = expr.preselect(documentSet);			if (ndocs.getLength() == 0)				return new ArrayList(1);			Value resultValue = expr.eval(documentSet, null, null);			if (!(resultValue.getType() == Value.isNodeList))				throw new SAXException("select expression should evaluate to a" + "node-set");			NodeList set = resultValue.getNodeList();			ArrayList out = new ArrayList(set.getLength());			for (int i = 0; i < set.getLength(); i++) {				out.add(set.item(i));			}			return out;		} catch (RecognitionException e) {			LOG.warn("error while creating variable", e);			throw new SAXException(e);		} catch (TokenStreamException e) {			LOG.warn("error while creating variable", e);			throw new SAXException(e);		} catch (PermissionDeniedException e) {			LOG.warn("error while creating variable", e);			throw new SAXException(e);		} catch (EXistException e) {			LOG.warn("error while creating variable", e);			throw new SAXException(e);		}	}