For an example of the use of an iterative query, see JAXRQueryIterative.java in the directory <INSTALL>/registry/samples/query-iterative/src. This program finds all registry objects whose names match a given string and then iterates through the first 100 of them.