for (final Thesis thesis : getRootDomainObject().getThesesSet()) {
final Enrolment enrolment = thesis.getEnrolment();
final ExecutionSemester executionPeriod = enrolment.getExecutionPeriod();
if (executionPeriod.getExecutionYear() == executionYear) {
final ThesisPresentationState thesisPresentationState =
ThesisPresentationState.getThesisPresentationState(thesis);;
final Degree degree = enrolment.getStudentCurricularPlan().getDegree();
final DegreeType degreeType = degree.getDegreeType();
final Row row = spreadsheet.addRow();
row.setCell(thesis.getStudent().getNumber().toString());
row.setCell(thesis.getStudent().getPerson().getName());
row.setCell(degreeType.getLocalizedName());
row.setCell(degree.getPresentationName());
row.setCell(degree.getSigla());
row.setCell(thesis.getTitle().getContent());
row.setCell(thesisPresentationState.getName());
addTeacherRows(thesis, row, ThesisParticipationType.ORIENTATOR);
addTeacherRows(thesis, row, ThesisParticipationType.COORIENTATOR);
}
}