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