// We need to remove the default XPathFunctionLibrary to replace it
// with our own
List libList = ((FunctionLibraryList)getFunctionLibrary()).libraryList;
XPathFunctionLibrary xpathLib = null;
for (Object lib : libList) {
FunctionLibrary flib = (FunctionLibrary) lib;
if (flib instanceof XPathFunctionLibrary) xpathLib = (XPathFunctionLibrary) flib;
}
if (xpathLib != null) libList.remove(xpathLib);
OdeXPathFunctionLibrary oxpfl = new OdeXPathFunctionLibrary(funcResolver);
oxpfl.setXPathFunctionResolver(funcResolver);