NodeSet hits[] = new NodeSet[terms.length]; String prefix;
NodeSet hits[] = new NodeSet[terms.size()]; String term;
	public Sequence evalQuery(XQueryContext context, NodeSet nodes,								String[] terms) throws XPathException {		if (terms == null || terms.length == 0)			return Sequence.EMPTY_SEQUENCE; // no search terms		double threshold = 0.65;		if (getArgumentCount() == 3) {			Sequence thresOpt = getArgument(2).eval(nodes);			if(thresOpt.getLength() != 1)				throw new XPathException(getASTNode(), "third argument to " + getName() +						"should be a single double value");			threshold = ((DoubleValue) thresOpt.convertTo(Type.DOUBLE)).getDouble();		}		NodeSet hits[] = new NodeSet[terms.length];		String prefix;		TermMatcher matcher;		for (int k = 0; k < terms.length; k++) {			if(terms[k].length() == 0)				hits[k] = null;			else {				matcher = new FuzzyMatcher(terms[k], threshold);				hits[k] =					context.getBroker().getTextEngine().getNodes(					    context,						nodes.getDocumentSet(),						nodes,						matcher, terms[k].substring(0, 1));			}		}		return mergeResults(hits);	}