for (String line : file.split("\n")) {
if (!line.startsWith(BundleUtil.getString(Bundle.GEP, "label.externalId"))) {
String[] parts = fillArray(line.split(SEPARATOR), 15);
Degree degree = FenixFramework.getDomainObject(parts[0]);
if (!degree.getDegreeType().getLocalizedName().equals(parts[1])) {
throw new DomainException("error.ects.invalidLine.nonMatchingCourse", parts[0], parts[1], degree
.getDegreeType().getLocalizedName());
}
if (!degree.getName().equals(parts[2])) {
throw new DomainException("error.ects.invalidLine.nonMatchingCourse", parts[0], parts[2], degree.getName());
}
CurricularYear year = CurricularYear.readByYear(Integer.parseInt(parts[3]));
EctsDegreeByCurricularYearConversionTable.createConversionTable(degree, executionInterval, year,
Arrays.copyOfRange(parts, 4, 15));
}