searchParameters.setStudentNumber(Integer.valueOf(number));
} else {
searchParameters.setUsername(number);
}
final CollectionPager<Person> people =
new SearchPerson().run(searchParameters, new SearchPerson.SearchPersonPredicate(searchParameters));
final Collection<Registration> registrations = new ArrayList<Registration>();
for (final Person person : people.getCollection()) {
if (person.getStudent() != null) {
for (final Registration registration : person.getStudent().getRegistrationsSet()) {
if (registration.hasAnyActiveState((ExecutionSemester) executionInterval)) {