}
}
for (TreeSet<EnrolmentPeriod> periods : enrolmentPeriodsByDate.values()) {
if (periods.size() == 1) {
EnrolmentPeriod enrolmentPeriod = periods.first();
warnings.add(BundleUtil.getString(Bundle.STUDENT,
"message.out.degree.enrolment.period.in.special.season.evaluations", degreeCurricularPlan.getDegree()
.getSigla(), enrolmentPeriod.getExecutionPeriod().getSemester().toString(), enrolmentPeriod
.getExecutionPeriod().getYear(), YearMonthDay.fromDateFields(enrolmentPeriod.getStartDate())
.toString(), YearMonthDay.fromDateFields(enrolmentPeriod.getEndDate()).toString()));
} else {
EnrolmentPeriod enrolmentPeriod = periods.first();
warnings.add(BundleUtil.getString(Bundle.STUDENT,
"message.out.degree.enrolment.period.in.special.season.evaluations.simple", degreeCurricularPlan
.getDegree().getSigla(), YearMonthDay.fromDateFields(enrolmentPeriod.getStartDate()).toString(),
YearMonthDay.fromDateFields(enrolmentPeriod.getEndDate()).toString()));
}
}
return warnings;
}