Source:
public ActionResult execute() throws EntityDoesNotExistException { courseId = getRequestParamValue(Const.ParamsNames.COURSE_ID); isDisplayArchivedCourseString = getRequestParamValue(Const.ParamsNames.DISPLAY_ARCHIVE); verifyAccessible(); if (isDisplayArchivedCourseString != null) { putDisplayArchivedOptionToSession(); } else { getDisplayArchivedOptionFromSession(); } List<String> coursePaginationList = new ArrayList<String>(); String courseName = getCoursePaginationList(coursePaginationList); data = new InstructorCommentsPageData(account); data.currentInstructor = instructor; data.courseId = courseId; CourseRoster roster = null; Map<String, List<CommentAttributes>> giverEmailToCommentsMap = new HashMap<String, List<CommentAttributes>>(); List<FeedbackSessionAttributes> feedbackSessions = new ArrayList<FeedbackSessionAttributes>(); if (coursePaginationList.size() > 0) { roster = new CourseRoster(logic.getStudentsForCourse(courseId), logic.getInstructorsForCourse(courseId)); giverEmailToCommentsMap = getGiverEmailToCommentsMap(); feedbackSessions = getFeedbackSessions(); } int numberOfPendingComments = 0; if (!courseId.isEmpty()) { numberOfPendingComments = logic.getCommentsForSendingState(courseId, CommentSendingState.PENDING).size() + logic.getFeedbackResponseCommentsForSendingState(courseId, CommentSendingState.PENDING).size(); } statusToAdmin = "instructorComments Page Load<br>" + "Viewing <span class=\"bold\">" + account.googleId + "'s</span> comment records " + "for Course <span class=\"bold\">[" + courseId + "]</span>"; data.init(isViewingDraft, isDisplayArchivedCourse, courseId, courseName, coursePaginationList, giverEmailToCommentsMap, instructor != null ? instructor.email : "no-email", instructor, roster, feedbackSessions, previousPageLink, nextPageLink, numberOfPendingComments, getGiverEmailToGiverNameMap(roster)); return createShowPageResult(Const.ViewURIs.INSTRUCTOR_COMMENTS, data); }

Target:
public ActionResult execute() throws EntityDoesNotExistException { courseId = getRequestParamValue(Const.ParamsNames.COURSE_ID); isDisplayArchivedCourseString = getRequestParamValue(Const.ParamsNames.DISPLAY_ARCHIVE); verifyAccessible(); if (isDisplayArchivedCourseString != null) { putDisplayArchivedOptionToSession(); } else { getDisplayArchivedOptionFromSession(); } List<String> coursePaginationList = new ArrayList<String>(); String courseName = getCoursePaginationList(coursePaginationList); data = new InstructorCommentsPageData(account); CourseRoster roster = null; Map<String, List<CommentAttributes>> giverEmailToCommentsMap = new HashMap<String, List<CommentAttributes>>(); Map<String, List<Boolean>> giverEmailToCanModifyCommentListMap = new HashMap<String, List<Boolean>>(); List<FeedbackSessionAttributes> feedbackSessions = new ArrayList<FeedbackSessionAttributes>(); if (coursePaginationList.size() > 0) { roster = new CourseRoster(logic.getStudentsForCourse(courseId), logic.getInstructorsForCourse(courseId)); giverEmailToCommentsMap = getGiverEmailToCommentsMap(); giverEmailToCanModifyCommentListMap = getGiverEmailToCanModifyCommentListMap(giverEmailToCommentsMap); feedbackSessions = getFeedbackSessions(); } int numberOfPendingComments = 0; if (!courseId.isEmpty()) { numberOfPendingComments = logic.getCommentsForSendingState(courseId, CommentSendingState.PENDING).size() + logic.getFeedbackResponseCommentsForSendingState(courseId, CommentSendingState.PENDING).size(); } statusToAdmin = "instructorComments Page Load<br>" + "Viewing <span class=\"bold\">" + account.googleId + "'s</span> comment records " + "for Course <span class=\"bold\">[" + courseId + "]</span>"; data.init(isViewingDraft, isDisplayArchivedCourse, courseId, courseName, coursePaginationList, giverEmailToCommentsMap, giverEmailToCanModifyCommentListMap, roster, feedbackSessions, numberOfPendingComments); return createShowPageResult(Const.ViewURIs.INSTRUCTOR_COMMENTS, data); }