Source:
public void initForSectionPanelViews(InstructorAttributes instructor, String selectedSection, String showStats, String groupByTeam, ViewType view) { Assumption.assertNotNull(bundle); this.viewType = view; this.sortType = view.toString(); initCommonVariables(instructor, selectedSection, showStats, groupByTeam); if (!bundle.isComplete) { if (isAllSectionsSelected()) { buildSectionPanelsForForAjaxLoading(getSections()); } else { buildSectionPanelWithErrorMessage(); } return; } if (bundle.responses.isEmpty()) { return; } switch (viewType) { case RECIPIENT_GIVER_QUESTION: Map<String, Map<String, List<FeedbackResponseAttributes>>> sortedResponsesForRGQ = bundle.getResponsesSortedByRecipientGiverQuestion(isGroupedByTeam()); buildSectionPanelsForViewByParticipantParticipantQuestion(sortedResponsesForRGQ, viewType.additionalInfoId()); break; case RECIPIENT_QUESTION_GIVER: Map<String, Map<FeedbackQuestionAttributes, List<FeedbackResponseAttributes>>> sortedResponsesForRQG = bundle.getResponsesSortedByRecipientQuestionGiver(isGroupedByTeam()); buildSectionPanelsForViewByParticipantQuestionParticipant(sortedResponsesForRQG, viewType.additionalInfoId()); break; case GIVER_QUESTION_RECIPIENT: Map<String, Map<FeedbackQuestionAttributes, List<FeedbackResponseAttributes>>> sortedResponsesForGQR = bundle.getResponsesSortedByGiverQuestionRecipient(isGroupedByTeam()); buildSectionPanelsForViewByParticipantQuestionParticipant(sortedResponsesForGQR, viewType.additionalInfoId()); break; case GIVER_RECIPIENT_QUESTION: Map<String, Map<String, List<FeedbackResponseAttributes>>> sortedResponsesForGRQ = bundle.getResponsesSortedByGiverRecipientQuestion(isGroupedByTeam()); buildSectionPanelsForViewByParticipantParticipantQuestion(sortedResponsesForGRQ, viewType.additionalInfoId()); break; default: Assumption.fail(); break; } }

Target:
public void initForSectionPanelViews(InstructorAttributes instructor, String selectedSection, String showStats, String groupByTeam, ViewType view) { Assumption.assertNotNull(bundle); this.viewType = view; this.sortType = view.toString(); initCommonVariables(instructor, selectedSection, showStats, groupByTeam); if (!bundle.isComplete) { if (isAllSectionsSelected()) { buildSectionPanelsForForAjaxLoading(getSections()); } else { buildSectionPanelWithErrorMessage(); } return; } if (bundle.responses.isEmpty()) { return; } switch (viewType) { case RECIPIENT_GIVER_QUESTION: Map<String, Map<String, List<FeedbackResponseAttributes>>> sortedResponsesForRgq = bundle.getResponsesSortedByRecipientGiverQuestion(isGroupedByTeam()); buildSectionPanelsForViewByParticipantParticipantQuestion(sortedResponsesForRgq, viewType.additionalInfoId()); break; case RECIPIENT_QUESTION_GIVER: Map<String, Map<FeedbackQuestionAttributes, List<FeedbackResponseAttributes>>> sortedResponsesForRqg = bundle.getResponsesSortedByRecipientQuestionGiver(isGroupedByTeam()); buildSectionPanelsForViewByParticipantQuestionParticipant(sortedResponsesForRqg, viewType.additionalInfoId()); break; case GIVER_QUESTION_RECIPIENT: Map<String, Map<FeedbackQuestionAttributes, List<FeedbackResponseAttributes>>> sortedResponsesForGqr = bundle.getResponsesSortedByGiverQuestionRecipient(isGroupedByTeam()); buildSectionPanelsForViewByParticipantQuestionParticipant(sortedResponsesForGqr, viewType.additionalInfoId()); break; case GIVER_RECIPIENT_QUESTION: Map<String, Map<String, List<FeedbackResponseAttributes>>> sortedResponsesForGrq = bundle.getResponsesSortedByGiverRecipientQuestion(isGroupedByTeam()); buildSectionPanelsForViewByParticipantParticipantQuestion(sortedResponsesForGrq, viewType.additionalInfoId()); break; default: Assumption.fail(); break; } }