for(int i=0; i<record.field_count(); i++) {
if (i>0) line += this.getOutputFieldSeparator();
line += record.field_name(i);
}
} else {
Iterator it = outputFields.iterateKeys();
int itCount = 0;
while(it.hasNext()) {
if (itCount>0) line += this.getOutputFieldSeparator();
line += (String) it.next();
itCount++;