getExecutionDegree().getDegree().getDegreeType(), degreeCandidacy);
degreeCandidacy);
    protected Registration createRegistration() {	final DegreeCandidacy degreeCandidacy = getDegreeCandidacy();	final Registration registration = new Registration(getDegreeCandidacy().getPerson(), Student		.generateStudentNumber(), StudentKind.readByStudentType(StudentType.NORMAL),		new StudentState(StudentState.INSCRITO), Boolean.valueOf(false), Boolean.valueOf(false),		getExecutionDegree().getDegree().getDegreeType(), degreeCandidacy);	registration.getStudent().setPersonalDataAuthorizationForCurrentExecutionYear(		getDegreeCandidacy().getStudentPersonalDataAuthorizationChoice());	if (getDegreeCandidacy().getApplyForResidence()) {	    registration.getStudent().setResidenceCandidacyForCurrentExecutionYear(		    getDegreeCandidacy().getNotesAboutResidenceAppliance());	}	return registration;    }