if (getPerson().getStudent() == null) {
new Student(getPerson());
}
Student student = getPerson().getStudent();
PrecedentDegreeInformation precedentDegreeInformation = getCandidacy().getPrecedentDegreeInformation();
ExecutionYear executionYear = getExecutionYear();
if (getPerson().getStudent().getPersonalIngressionDataByExecutionYear(executionYear) == null) {
new PersonalIngressionData(student, executionYear, precedentDegreeInformation);
}
PersonalIngressionData personalIngressionData =
getPerson().getStudent().getPersonalIngressionDataByExecutionYear(executionYear);
personalIngressionData.addPrecedentDegreesInformations(precedentDegreeInformation);
precedentDegreeInformation.setPhdIndividualProgramProcess(getIndividualProgramProcess());
RoleType.grant(RoleType.PERSON, person.getUser());
RoleType.grant(RoleType.STUDENT, person.getUser());
RoleType.grant(RoleType.RESEARCHER, person.getUser());