public static Student findStudent( final Group group, final String authId ) { for (Student student : group.getStudents().values()) { if (authId.equalsIgnoreCase(student.getEmail())) { return student; } } return null; }
public static Version resolveVersion( final Task task, final IndexEntry indexEntry, final Group group, final String studentId ) { return resolveVersion( task, indexEntry.getVerAnchor(), indexEntry.getVerStep(), group.getStudents().keySet(), studentId ); }