QName name = createQName(node.getName(), moduleCtx.getDefaultFunctionNamespaceUri());
int arity = node.getParameters().size();
UserDefinedXQueryFunction f = (UserDefinedXQueryFunction) moduleCtx.lookupFunction(name,
arity);
Signature sign = f.getSignature();
TranslationContext tCtx = new TranslationContext(null, new EmptyTupleSourceOperator());
XQueryVariable[] params = new XQueryVariable[arity];
for (int i = 0; i < arity; ++i) {
ParamNode pNode = node.getParameters().get(i);
QName pName = createQName(pNode.getName());
SequenceType pType = SequenceType.create(AnyItemType.INSTANCE, Quantifier.QUANT_STAR);