funcName = funcName.substring(0, p);
}
try {
final QName fqn = QName.parse(context, funcName);
final Module module = context.getModule(fqn.getNamespaceURI());
UserDefinedFunction func = null;
if (module != null)
{func = ((ExternalModule)module).getFunction(fqn, arity, context);}
else
{func = context.resolveFunction(fqn, arity);}
call = new FunctionCall(context, func);