writeHeader(writer);
Iterator iterator = infoGratuitySituations.listIterator();
int linesNumber = 0;
while (iterator.hasNext()) {
InfoGratuitySituation infoGratuitySituation = (InfoGratuitySituation) iterator.next();
if (valid(infoGratuitySituation, writerErrors)) {
writeLine(writer, infoGratuitySituation);
linesNumber++;
}