}
// Otherwise evaluate the function
context.setStackFrame(getStackFrameMap(), actualArgs);
ValueRepresentation result;
try {
result = ExpressionTool.evaluate(getBody(), evaluationMode, context, 1);
} catch (XPathException err) {
err.maybeSetLocation(this);
throw err;