fixupReferences(staticContext);
// register this function with the function library available at run-time (e.g. for saxon:evaluate())
if (executable.getFunctionLibrary() instanceof ExecutableFunctionLibrary) {
ExecutableFunctionLibrary lib = (ExecutableFunctionLibrary)executable.getFunctionLibrary();
lib.addFunction(compiledFunction);
} else {
// throw new AssertionError("executable.getFunctionLibrary() is an instance of " +
// executable.getFunctionLibrary().getClass().getName());
}