if (inCorrectExample) {
correctExamples.add(new StringPair(srcExample.getExample(), trgExample.getExample()));
} else if (inIncorrectExample) {
final StringPair examplePair = new StringPair(srcExample.getExample(), trgExample.getExample());
if (trgExample.getCorrections() == null) {
incorrectExamples.add(new IncorrectBitextExample(examplePair));
} else {
final List<String> corrections = trgExample.getCorrections();
final String[] correctionArray = corrections.toArray(new String[corrections.size()]);
incorrectExamples.add(new IncorrectBitextExample(examplePair, correctionArray));
}
}
inCorrectExample = false;
inIncorrectExample = false;
} else {