@Atomic
public static void run(RegisterCandidacyBean candidacyBean) {
check(RolePredicates.MASTER_DEGREE_ADMINISTRATIVE_OFFICE_PREDICATE);
StateMachine.execute(candidacyBean.getCandidacy().getActiveCandidacySituation(), new StateBean(
CandidacySituationType.REGISTERED.name()));
final Registration registration = candidacyBean.getCandidacy().getRegistration();
registration.setStartDate(candidacyBean.getStartDate() != null ? candidacyBean.getStartDate() : new YearMonthDay());
registration.setEnrolmentModelForCurrentExecutionYear(candidacyBean.getEnrolmentModel());