*/
public void write(OutputStream out, boolean littleEndianForUnicode) throws GedcomWriterException {
if (!validationSuppressed) {
GedcomValidator gv = new GedcomValidator(gedcom);
gv.autorepair = autorepair;
gv.validate();
validationFindings = gv.findings;
int numErrorFindings = 0;
for (GedcomValidationFinding f : validationFindings) {
if (f.severity == Severity.ERROR) {
numErrorFindings++;