QueryResults results = oql.execute(Database.READONLY);
while (results.hasMore())
{
Registry registry = (Registry)results.next();
RegistryVO registryVO = registry.getValueObject();
//System.out.println("found match:" + registryVO.getEntityName() + ":" + registryVO.getEntityId());
matchingRegistryVOList.add(registryVO);
if(limit > -1 && matchingRegistryVOList.size() > limit)