Source:
<code>public ActionResult execute() throws EntityDoesNotExistException { String courseId = getRequestParamValue(Const.ParamsNames.COURSE_ID); boolean isHtmlTableNeeded = getRequestParamAsBoolean(Const.ParamsNames.CSV_TO_HTML_TABLE_NEEDED); Assumption.assertNotNull(courseId); InstructorAttributes instructor = logic.getInstructorForGoogleId(courseId, account.googleId); new GateKeeper().verifyAccessible(instructor, logic.getCourse(courseId)); InstructorCourseDetailsPageData data = new InstructorCourseDetailsPageData(account); if (isHtmlTableNeeded) { String courseStudentListAsCsv = logic.getCourseStudentListAsCsv(courseId, account.googleId); data.setStudentListHtmlTableAsString(StringHelper.csvToHtmlTable(courseStudentListAsCsv)); statusToAdmin = "instructorCourseDetails Page Ajax Html table Load<br>" + "Viewing Student List Table for Course <span class=\"bold\">[" + courseId + "]</span>"; return createAjaxResult(data); } CourseDetailsBundle courseDetails = logic.getCourseDetails(courseId); List<InstructorAttributes> instructors = logic.getInstructorsForCourse(courseId); List<StudentAttributes> students = logic.getStudentsForCourse(courseId); StudentAttributes.sortByNameAndThenByEmail(students); data.init(instructor, courseDetails, instructors, students); <START> if (students.size() == 0) { <END> statusToUser.add(Const.StatusMessages.INSTRUCTOR_COURSE_EMPTY); } statusToAdmin = "instructorCourseDetails Page Load<br>" + "Viewing Course Details for Course <span class=\"bold\">[" + courseId + "]</span>"; ShowPageResult response = createShowPageResult(Const.ViewURIs.INSTRUCTOR_COURSE_DETAILS, data); return response; }</code><technical_language>isEmpty()</technical_language>

Target:
public ActionResult execute() throws EntityDoesNotExistException { String courseId = getRequestParamValue(Const.ParamsNames.COURSE_ID); boolean isHtmlTableNeeded = getRequestParamAsBoolean(Const.ParamsNames.CSV_TO_HTML_TABLE_NEEDED); Assumption.assertNotNull(courseId); InstructorAttributes instructor = logic.getInstructorForGoogleId(courseId, account.googleId); new GateKeeper().verifyAccessible(instructor, logic.getCourse(courseId)); InstructorCourseDetailsPageData data = new InstructorCourseDetailsPageData(account); if (isHtmlTableNeeded) { String courseStudentListAsCsv = logic.getCourseStudentListAsCsv(courseId, account.googleId); data.setStudentListHtmlTableAsString(StringHelper.csvToHtmlTable(courseStudentListAsCsv)); statusToAdmin = "instructorCourseDetails Page Ajax Html table Load<br>" + "Viewing Student List Table for Course <span class=\"bold\">[" + courseId + "]</span>"; return createAjaxResult(data); } CourseDetailsBundle courseDetails = logic.getCourseDetails(courseId); List<InstructorAttributes> instructors = logic.getInstructorsForCourse(courseId); List<StudentAttributes> students = logic.getStudentsForCourse(courseId); StudentAttributes.sortByNameAndThenByEmail(students); data.init(instructor, courseDetails, instructors, students); if (students.isEmpty()) { statusToUser.add(Const.StatusMessages.INSTRUCTOR_COURSE_EMPTY); } statusToAdmin = "instructorCourseDetails Page Load<br>" + "Viewing Course Details for Course <span class=\"bold\">[" + courseId + "]</span>"; ShowPageResult response = createShowPageResult(Const.ViewURIs.INSTRUCTOR_COURSE_DETAILS, data); return response; }