return null;
final int curricularYear = registration.getCurricularYear(); System.out.println("curricularYear: " + curricularYear); if (curricularYear == degree.getDegreeType().getYears()) { senior = new Senior(); senior.setStudent(registration); } else { return null; }
	public InfoSenior run(IUserView userView) throws FenixServiceException, ExcepcaoPersistencia {	    	final Person person = Person.readPersonByUsername(userView.getUtilizador());		final Registration registration = person.getStudentByType(DegreeType.DEGREE);				final Senior senior = (registration == null) ? null : registration.getSenior();		if (senior == null) {		    return null;		}		final InfoSenior readInfoSenior = new InfoSenior();		readInfoSenior.setIdInternal(senior.getIdInternal());		readInfoSenior.setName(person.getNome());		readInfoSenior.setAddress(person.getAddress());		readInfoSenior.setAreaCode(person.getAreaCode());		readInfoSenior.setAreaCodeArea(person.getAreaOfAreaCode());		readInfoSenior.setPhone(person.getPhone());		readInfoSenior.setMobilePhone(person.getMobile());		readInfoSenior.setEmail(person.getEmail());		readInfoSenior.setAvailablePhoto(person.getAvailablePhoto());		readInfoSenior.setPersonID(person.getIdInternal());		readInfoSenior.setExpectedDegreeTermination(senior.getExpectedDegreeTermination());		readInfoSenior.setExpectedDegreeAverageGrade(senior.getExpectedDegreeAverageGrade());		readInfoSenior.setSpecialtyField(senior.getSpecialtyField());		readInfoSenior.setProfessionalInterests(senior.getProfessionalInterests());		readInfoSenior.setLanguageSkills(senior.getLanguageSkills());		readInfoSenior.setInformaticsSkills(senior.getInformaticsSkills());		readInfoSenior.setExtracurricularActivities(senior.getExtracurricularActivities());		readInfoSenior.setProfessionalExperience(senior.getProfessionalExperience());		readInfoSenior.setLastModificationDate(senior.getLastModificationDate());		return readInfoSenior;	}