boolean isFromMasterDegree = false;  if (arguments != null && arguments[0] != null) { Integer studentNumber = ((InfoStudent) arguments[0]).getNumber(); if (studentNumber != null) { Registration registration = Registration.readStudentByNumberAndDegreeType(studentNumber, DEGREE_TYPE); if (registration != null) { isFromMasterDegree = true; } } }  return isFromMasterDegree;
Registration registration = (Registration) arguments[0]; return (registration.getDegreeType().equals(DegreeType.MASTER_DEGREE) || registration .getDegreeType().equals(DegreeType.BOLONHA_ADVANCED_FORMATION_DIPLOMA));
    private boolean verifyStudentIsFromMasterDegree(Object[] arguments) throws ExcepcaoPersistencia {        boolean isFromMasterDegree = false;        if (arguments != null && arguments[0] != null) {            Integer studentNumber = ((InfoStudent) arguments[0]).getNumber();            if (studentNumber != null) {                Registration registration = Registration.readStudentByNumberAndDegreeType(studentNumber, DEGREE_TYPE);                if (registration != null) {                    isFromMasterDegree = true;                }            }        }        return isFromMasterDegree;    }