allStudents.addAll(rootDomainObject.getStudents());
allStudents.addAll(rootDomainObject.getRegistrations());
    private List<Person> getAllPersonsToSearchByClass() throws FenixServiceException,            FenixFilterException {        List<Person> allPersons = new ArrayList<Person>();        RoleType personTypeAux = RoleType.valueOf(personType);        if (personTypeAux.equals(RoleType.EMPLOYEE)) {            List<Employee> allEmployees = new ArrayList<Employee>();            allEmployees.addAll(rootDomainObject.getEmployees());            for (Employee employee : allEmployees) {                if (employee.getEmployeeNumber().equals(personNumber)) {                    if (!employee.getPerson().hasRole(RoleType.TEACHER)) {                        allPersons.add(employee.getPerson());                    }                    return allPersons;                }            }        } else if (personTypeAux.equals(RoleType.TEACHER)) {            List<Teacher> allTeachers = new ArrayList<Teacher>();            allTeachers.addAll(rootDomainObject.getTeachers());            for (Teacher teacher : allTeachers) {                if (teacher.getTeacherNumber().equals(personNumber)) {                    allPersons.add(teacher.getPerson());                    return allPersons;                }            }        } else if (personTypeAux.equals(RoleType.STUDENT)) {            List<Registration> allStudents = new ArrayList<Registration>();            allStudents.addAll(rootDomainObject.getStudents());            for (Registration registration : allStudents) {                if (registration.getNumber().equals(personNumber)) {                    allPersons.add(registration.getPerson());                    return allPersons;                }            }        } else if (personTypeAux.equals(RoleType.GRANT_OWNER)) {            List<GrantOwner> allGrantOwner = new ArrayList<GrantOwner>();            allGrantOwner.addAll(rootDomainObject.getGrantOwners());            for (GrantOwner grantOwner : allGrantOwner) {                if (grantOwner.getNumber().equals(personNumber)) {                    allPersons.add(grantOwner.getPerson());                    return allPersons;                }            }        }        return allPersons;    }