switch (studentCurricularPlan.getDegree().getDegreeType()) {
case BOLONHA_ADVANCED_FORMATION_DIPLOMA:
final AccountingEventsManager accountingEventsManager = new AccountingEventsManager();
final ExecutionYear executionYearToCreateEvents =
executionYear != null ? executionYear : ExecutionYear.readCurrentExecutionYear();
accountingEventsManager.createGratuityEvent(studentCurricularPlan, executionYearToCreateEvents, false);
new DfaRegistrationEvent(administrativeOffice, person, studentCurricularPlan.getRegistration());
accountingEventsManager.createInsuranceEvent(studentCurricularPlan, executionYearToCreateEvents, false);
break;
default:
break;