private List<String> getParameterValues(Sequence contextSequence,
Item contextItem) throws XPathException {
final List<String> args = new ArrayList<String>(getArgumentCount() + 10);
for (int i = 0; i < getArgumentCount(); i++) {
final Sequence seq = getArgument(i).eval(contextSequence, contextItem);
for (final SequenceIterator j = seq.iterate(); j.hasNext();) {
final Item next = j.nextItem();
args.add(next.getStringValue());
}
}
return args;