FieldSearchResult result =
finder.findObjects(aux, 20, query);
int matchNum = 0;
while (result != null) {
for (int i = 0; i < result.getResultList().getObjectFields().size(); i++) {
ObjectFields o = result.getResultList().getObjectFields().get(i);
matchNum++;
System.out.println("#" + matchNum);
AutoFinder.printValue("pid ", o.getPid() != null ? o.getPid().getValue() : null);
AutoFinder.printValue("state ", o.getState() != null ? o.getState().getValue() : null);
AutoFinder.printValue("ownerId ", o.getOwnerId() != null ? o.getOwnerId().getValue() : null);
AutoFinder.printValue("cDate ", o.getCDate() != null ? o.getCDate().getValue() : null);
AutoFinder.printValue("mDate ", o.getMDate() != null ? o.getMDate().getValue() : null);
AutoFinder.printValue("dcmDate ", o.getDcmDate() != null ? o.getDcmDate().getValue() : null);
AutoFinder.printValue("title ", o.getTitle() != null ? o.getTitle().toString() : null);
AutoFinder.printValue("creator ", o.getCreator() != null ? o.getCreator().toString() : null);
AutoFinder.printValue("subject ", o.getSubject() != null ? o.getSubject().toString() : null);
AutoFinder.printValue("description ", o.getDescription() != null ? o.getDescription().toString() : null);
AutoFinder.printValue("publisher ", o.getPublisher() != null ? o.getPublisher().toString() : null);
AutoFinder.printValue("contributor ", o.getContributor() != null ? o.getContributor().toString() : null);
AutoFinder.printValue("date ", o.getDate() != null ? o.getDate().toString() : null);
AutoFinder.printValue("type ", o.getType() != null ? o.getType().toString() : null);
AutoFinder.printValue("format ", o.getFormat() != null ? o.getFormat().toString() : null);
AutoFinder.printValue("identifier ", o.getIdentifier() != null ? o.getIdentifier().toString() : null);
AutoFinder.printValue("source ", o.getSource() != null ? o.getSource().toString() : null);
AutoFinder.printValue("language ", o.getLanguage() != null ? o.getLanguage().toString() : null);
AutoFinder.printValue("relation ", o.getRelation() != null ? o.getRelation().toString() : null);
AutoFinder.printValue("coverage ", o.getCoverage() != null ? o.getCoverage().toString() : null);
AutoFinder.printValue("rights ", o.getRights() != null ? o.getRights().toString() : null);
System.out.println("");
}
if (result.getListSession() != null && result.getListSession().getValue() != null) {
result = finder.resumeFindObjects(result.getListSession().getValue().getToken());
} else {