final List<Registration> students = new ArrayList(); for (final Registration registration : RootDomainObject.getInstance().getRegistrationsSet()) { if (registration.getDegreeType().equals(degreeType)) { students.add(registration); } } return students;
final List<Registration> students = new ArrayList(); for (final Registration registration : RootDomainObject.getInstance().getRegistrationsSet()) { if (registration.getDegreeType().equals(degreeType)) { students.add(registration); }
	public static List<Registration> readStudentsByDegreeType(DegreeType degreeType) {        final List<Registration> students = new ArrayList();        for (final Registration registration : RootDomainObject.getInstance().getRegistrationsSet()) {            if (registration.getDegreeType().equals(degreeType)) {                students.add(registration);			}		}		return students;	}