if (!markSheets.isEmpty()) {
Map<CurricularCourse, MarkSheetToConfirmSendMailBean> map =
new HashMap<CurricularCourse, MarkSheetToConfirmSendMailBean>();
for (MarkSheet markSheet : markSheets) {
if (map.get(markSheet.getCurricularCourse()) == null) {
map.put(markSheet.getCurricularCourse(), new MarkSheetToConfirmSendMailBean(markSheet, true));
}
}
bean.setMarkSheetToConfirmSendMailBean(new ArrayList<MarkSheetToConfirmSendMailBean>(map.values()));
}
if (!executionCourses.isEmpty()) {