We wish that DataDirect XQuery can support Groovy code since Groovy runs on the JVM. Groovy is light and more easier to code compare to Java.