Source:
<code>public ActionResult execute() throws EntityDoesNotExistException { new GateKeeper().verifyLoggedInUserPrivileges(); data = new StudentHomePageData(account); String recentlyJoinedCourseId = getRequestParamValue(Const.ParamsNames.CHECK_PERSISTENCE_COURSE); List<CourseDetailsBundle> courses = new ArrayList<CourseDetailsBundle>(); Map<String, Boolean> sessionSubmissionStatusMap = new HashMap<String, Boolean>(); try { courses = logic.getCourseDetailsListForStudent(account.googleId); sessionSubmissionStatusMap = generateFeedbackSessionSubmissionStatusMap(courses, account.googleId); CourseDetailsBundle.sortDetailedCourses(courses); statusToAdmin = "studentHome Page Load<br>" + "Total courses: " + courses.size(); <START> boolean isDataConsistent = checkEventualConsistency(recentlyJoinedCourseId, courses); <END> if (!isDataConsistent) { addPlaceholderCourse(courses, recentlyJoinedCourseId, account.googleId, sessionSubmissionStatusMap); } for (CourseDetailsBundle course : courses) { FeedbackSessionDetailsBundle.sortFeedbackSessionsByCreationTime(course.feedbackSessions); } } catch (EntityDoesNotExistException e) { if (recentlyJoinedCourseId != null) { addPlaceholderCourse(courses, recentlyJoinedCourseId, account.googleId, sessionSubmissionStatusMap); } else { statusToUser.add(Const.StatusMessages.STUDENT_FIRST_TIME); statusToAdmin = Const.ACTION_RESULT_FAILURE + " :" + e.getMessage(); } } data.init(courses, sessionSubmissionStatusMap); ShowPageResult response = createShowPageResult(Const.ViewURIs.STUDENT_HOME, data); return response; }</code><technical_language>method named isDataConsistent(courseId,courses) ? a name is isCourseIncluded(courseId,courses) method checks</technical_language>

Target:
public ActionResult execute() throws EntityDoesNotExistException { new GateKeeper().verifyLoggedInUserPrivileges(); String recentlyJoinedCourseId = getRequestParamValue(Const.ParamsNames.CHECK_PERSISTENCE_COURSE); List<CourseDetailsBundle> courses = new ArrayList<CourseDetailsBundle>(); Map<FeedbackSessionAttributes, Boolean> sessionSubmissionStatusMap = new HashMap<>(); try { courses = logic.getCourseDetailsListForStudent(account.googleId); sessionSubmissionStatusMap = generateFeedbackSessionSubmissionStatusMap(courses, account.googleId); CourseDetailsBundle.sortDetailedCourses(courses); statusToAdmin = "studentHome Page Load<br>" + "Total courses: " + courses.size(); boolean isDataConsistent = isCourseIncluded(recentlyJoinedCourseId, courses); if (!isDataConsistent) { addPlaceholderCourse(courses, recentlyJoinedCourseId, account.googleId, sessionSubmissionStatusMap); } for (CourseDetailsBundle course : courses) { FeedbackSessionDetailsBundle.sortFeedbackSessionsByCreationTime(course.feedbackSessions); } } catch (EntityDoesNotExistException e) { if (recentlyJoinedCourseId != null) { addPlaceholderCourse(courses, recentlyJoinedCourseId, account.googleId, sessionSubmissionStatusMap); } else { statusToUser.add(Const.StatusMessages.STUDENT_FIRST_TIME); statusToAdmin = Const.ACTION_RESULT_FAILURE + " :" + e.getMessage(); } } data = new StudentHomePageData(account, courses, sessionSubmissionStatusMap); ShowPageResult response = createShowPageResult(Const.ViewURIs.STUDENT_HOME, data); return response; }