for (int i=0; it.hasNext(); i++) {
ValueObject[] objects = it.next();
// log.info("Solution " + (i+1) + ":");
comma = "";
for (int j = 0; j < objects.length; j++) {
ValueObject term = objects[j];
String value = printValueObject(term);
if ( value.indexOf(',') >= 0 ) {
value = "\"" +value+ "\"";
}
out.printf("%s%s", comma, value);