// JXPathMetaModule starts copying here
// please keep both in sync.
lenient = config.getChild("lenient").getValueAsBoolean(lenient);
FunctionLibrary library = new FunctionLibrary();
getFunctions(library, config);
getPackages(library, config);
// the following is necessary to be able to use methods on objects without
// explicitely registering extension functions (see PackageFunctions javadoc)
library.addFunctions(new PackageFunctions("", null));
return new JXPathHelperConfiguration(library, lenient);
}