params[3].add(new IntegerValue(firstMatch.getLength()));
}
// now execute the callback func.
final Sequence callbackResult = callback.evalFunction(null, null, params);
// iterate through the result of the callback
for (final SequenceIterator iter = callbackResult.iterate(); iter.hasNext(); ) {
final Item next = iter.nextItem();
if (Type.subTypeOf(next.getType(), Type.NODE)) {
nodeNr = builder.getDocument().getLastNode();
try {
next.copyTo(context.getBroker(), receiver);