A custom query stored in the registry can be executed by giving the path of the stored query and giving a Map
of the required parameters. The following code illustrates:
registry.executeQuery("/path/to/storedQuery", parameter_map); // parameter map contains key value pairs required by the query
See also Custom Query to learn more information about custom query.