Source:
private FeedbackSessionResponseStatus getFeedbackSessionResponseStatus( FeedbackSessionAttributes fsa, CourseRoster roster, List<FeedbackQuestionAttributes> questions) { FeedbackSessionResponseStatus responseStatus = new FeedbackSessionResponseStatus(); List<StudentAttributes> students = roster.getStudents(); List<InstructorAttributes> instructors = roster.getInstructors(); List<FeedbackQuestionAttributes> studentQns = fqLogic .getFeedbackQuestionsForStudents(questions); List<String> studentNoResponses = new ArrayList<String>(); List<String> studentWhoResponses = new ArrayList<String>(); List<String> instructorNoResponses = new ArrayList<String>(); if (!studentQns.isEmpty()) { for (StudentAttributes student : students) { studentNoResponses.add(student.email); responseStatus.emailNameTable.put(student.email, student.name); responseStatus.emailSectionTable.put(student.email, student.section); responseStatus.emailTeamNameTable.put(student.email, student.team); } } studentNoResponses.removeAll(fsa.getRespondingStudentList()); studentWhoResponses.addAll(fsa.getRespondingStudentList()); for (InstructorAttributes instructor : instructors) { List<FeedbackQuestionAttributes> instructorQns = fqLogic .getFeedbackQuestionsForInstructor(questions, fsa.isCreator(instructor.email)); if (!instructorQns.isEmpty() && responseStatus.emailNameTable.get(instructor.email) == null) { instructorNoResponses.add(instructor.email); responseStatus.emailNameTable.put(instructor.email, instructor.name); } } instructorNoResponses.removeAll(fsa.getRespondingInstructorList()); responseStatus.noResponse.addAll(studentNoResponses); responseStatus.whoResponded.addAll(studentWhoResponses); responseStatus.noResponse.addAll(instructorNoResponses); return responseStatus; }

Target:
private FeedbackSessionResponseStatus getFeedbackSessionResponseStatus( FeedbackSessionAttributes fsa, CourseRoster roster, List<FeedbackQuestionAttributes> questions) { FeedbackSessionResponseStatus responseStatus = new FeedbackSessionResponseStatus(); List<StudentAttributes> students = roster.getStudents(); List<InstructorAttributes> instructors = roster.getInstructors(); List<FeedbackQuestionAttributes> studentQns = fqLogic .getFeedbackQuestionsForStudents(questions); List<String> studentNoResponses = new ArrayList<String>(); List<String> studentResponded = new ArrayList<String>(); List<String> instructorNoResponses = new ArrayList<String>(); if (!studentQns.isEmpty()) { for (StudentAttributes student : students) { studentNoResponses.add(student.email); responseStatus.emailNameTable.put(student.email, student.name); responseStatus.emailSectionTable.put(student.email, student.section); responseStatus.emailTeamNameTable.put(student.email, student.team); } } studentNoResponses.removeAll(fsa.getRespondingStudentList()); studentResponded.addAll(fsa.getRespondingStudentList()); for (InstructorAttributes instructor : instructors) { List<FeedbackQuestionAttributes> instructorQns = fqLogic .getFeedbackQuestionsForInstructor(questions, fsa.isCreator(instructor.email)); if (!instructorQns.isEmpty() && responseStatus.emailNameTable.get(instructor.email) == null) { instructorNoResponses.add(instructor.email); responseStatus.emailNameTable.put(instructor.email, instructor.name); } } instructorNoResponses.removeAll(fsa.getRespondingInstructorList()); responseStatus.noResponse.addAll(studentNoResponses); responseStatus.studentsWhoResponded.addAll(studentResponded); responseStatus.noResponse.addAll(instructorNoResponses); return responseStatus; }