}
@Override
protected PhdIndividualProgramProcess executeActivity(PhdIndividualProgramProcess process, User userView, Object object) {
final ManageEnrolmentsBean bean = (ManageEnrolmentsBean) object;
final StudentCurricularPlan scp = process.getRegistration().getLastStudentCurricularPlan();
final String mailBody = buildBody(bean);
scp.enrol(bean.getSemester(), Collections.<IDegreeModuleToEvaluate> emptySet(),
getCurriculumModules(bean.getEnrolmentsToValidate()), CurricularRuleLevel.ENROLMENT_WITH_RULES);
AlertService.alertStudent(process, AlertMessage.create(bean.getMailSubject()).isKey(false), AlertMessage.create(mailBody)
.isKey(false));
// TODO: wich group should be used in academic office?
// AlertService.alertAcademicOffice(process, permissionType,
// subjectKey, bodyKey)