=Module Imports=
An alternative solution is to access Java code can also be accessed by ''importing'' classes as modules. A new instance of the addressed class will be created, which can then be referenced in the query body.
The following (side-effecting) example returns the number of distinct values added to a hash set. The boolean values returned by {{Code|set:add()}} will be swallowed: