===Java Modules===
Since {{Version|7.8}}, locks can also be acquired on [[Java Bindings#Java functions|Java functions]] which are imported and invoked from an XQuery expressionsexpression. It is advisable to explicitly lock Java code whenever it performs sensitive read and write operations.
==Limitations==