final Student student = person.getStudent(); if (student != null) { for (final Registration registration : student.getRegistrationsSet()) {
if (person != null && person.getStudent() != null) { for (final Registration registration : person.getStudent().getRegistrationsSet()) {
    public boolean isMember(Person person) {	final Student student = person.getStudent();	if (student != null) {	    for (final Registration registration : student.getRegistrationsSet()) { 		if (registration.isMasterDegreeOrBolonhaMasterDegree()){		    return true;		}	    }	}	return false;    }