StudentCurricularPlan studentCurricularPlan = (StudentCurricularPlan) arg0; return (studentCurricularPlan.getDegreeCurricularPlan().getIdInternal() .intValue() == LEIC_OLD_DCP);
	private String checkStudentInformation(IUserView userView) {				final Registration registration = readStudent(userView);		if (registration == null) {		    return "noAuthorization";		}		if (registration.getPayedTuition() == null || registration.getPayedTuition().equals(Boolean.FALSE)) {		    if(registration.getInterruptedStudies().equals(Boolean.FALSE)) {		    	return "error.message.tuitionNotPayed";		    }		}		if (registration.getFlunked() == null || registration.getFlunked().equals(Boolean.TRUE)) {		    return "error.message.flunked";		}		if (registration.getRequestedChangeDegree() == null || registration.getRequestedChangeDegree().equals(Boolean.TRUE)) {		    return "error.message.requested.change.degree";		}				/*if (registration.hasAssociatedTutor()) {		    return new String("error.enrollment.student.withTutor+"		            + registration.getAssociatedTutor().getTeacher().getTeacherNumber().toString() + "+"		            + registration.getAssociatedTutor().getTeacher().getPerson().getNome());		}		*/				// check if the student is in the list of secretary enrolments		// students		final SecretaryEnrolmentStudent secretaryEnrolmentStudent = registration.getSecretaryEnrolmentStudents().isEmpty() ?		        null : registration.getSecretaryEnrolmentStudents().iterator().next();		if (secretaryEnrolmentStudent != null) {		    return "error.message.secretaryEnrolmentStudent";		}		// check if the student is from old Leic Curricular Plan		List studentCurricularPlans = (List) CollectionUtils.select(registration.getStudentCurricularPlans(), new Predicate(){		    public boolean evaluate(Object arg0) {		        StudentCurricularPlan scp = (StudentCurricularPlan) arg0;		        return scp.getCurrentState().equals(StudentCurricularPlanState.ACTIVE);		    }});            		boolean oldLeicStudent = CollectionUtils.exists(studentCurricularPlans, new Predicate() {		    public boolean evaluate(Object arg0) {		        StudentCurricularPlan studentCurricularPlan = (StudentCurricularPlan) arg0;		        return (studentCurricularPlan.getDegreeCurricularPlan().getIdInternal()		                .intValue() == LEIC_OLD_DCP);		    }		});		if (oldLeicStudent) {		    return "error.message.oldLeicStudent";		}				return null;	}