file.writeChars(format.formatContentType());
file.writeChars(format.formatHeader());
for(Entry<String,ValueModel> e: set) {
String key = e.getKey();
ValueModel model = e.getValue();
file.writeBytes(format.format(key, model.getSeparator(),model.getValues(),model.getComments()));
}
file.writeBytes(format.formatFooter());
}