Source:
<code>protected ActionResult execute() throws EntityDoesNotExistException { courseId = getRequestParamValue(Const.ParamsNames.COURSE_ID); Assumption.assertNotNull(courseId); feedbackSessionName = getRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME); Assumption.assertNotNull(feedbackSessionName); feedbackQuestionId = getRequestParamValue(Const.ParamsNames.FEEDBACK_QUESTION_ID); Assumption.assertNotNull(feedbackQuestionId); verifyAccesibleForSpecificUser(); setStatusToAdmin(); FeedbackSessionAttributes fs = logic.getFeedbackSession(feedbackSessionName, courseId); if (isSessionOpenForSpecificUser(fs) == false) { throw new UnauthorizedAccessException("This feedback session is not currently open for submission."); } String userEmailForCourse = getUserEmailForCourse(); getPageData(userEmailForCourse); String totalResponsesForQuestion = getRequestParamValue(Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL); int numOfResponsesToGet = Integer.parseInt(totalResponsesForQuestion); for(int responseIndx = 0; responseIndx < numOfResponsesToGet; responseIndx++){ FeedbackAbstractQuestionDetails questionDetails = data.bundle.question.getQuestionDetails(); FeedbackResponseAttributes response = extractFeedbackResponseData(requestParameters, 1, responseIndx, questionDetails); response.giverEmail = userEmailForCourse; saveResponse(response); } getPageData(userEmailForCourse); if (isError == false) { statusToUser.add(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED); } data.isSessionOpenForSubmission = isSessionOpenForSpecificUser(fs); return createSpecificShowPageResult(); <START> } <END></code><technical_language>I this is a of handling situation, compared throwing exception. remove exception instead? If do, revise Ui tests accordingly</technical_language>

Target:
protected ActionResult execute() throws EntityDoesNotExistException { courseId = getRequestParamValue(Const.ParamsNames.COURSE_ID); Assumption.assertNotNull(courseId); feedbackSessionName = getRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME); Assumption.assertNotNull(feedbackSessionName); feedbackQuestionId = getRequestParamValue(Const.ParamsNames.FEEDBACK_QUESTION_ID); Assumption.assertNotNull(feedbackQuestionId); verifyAccesibleForSpecificUser(); setStatusToAdmin(); FeedbackSessionAttributes fs = logic.getFeedbackSession(feedbackSessionName, courseId); if (isSessionOpenForSpecificUser(fs) == false) { isError = true; statusToUser.add(Const.StatusMessages.FEEDBACK_SUBMISSIONS_NOT_OPEN); } String userEmailForCourse = getUserEmailForCourse(); getPageData(userEmailForCourse); String totalResponsesForQuestion = getRequestParamValue(Const.ParamsNames.FEEDBACK_QUESTION_RESPONSETOTAL); int numOfResponsesToGet = Integer.parseInt(totalResponsesForQuestion); for(int responseIndx = 0; responseIndx < numOfResponsesToGet; responseIndx++){ FeedbackAbstractQuestionDetails questionDetails = data.bundle.question.getQuestionDetails(); FeedbackResponseAttributes response = extractFeedbackResponseData(requestParameters, 1, responseIndx, questionDetails); response.giverEmail = userEmailForCourse; if(isSessionOpenForSpecificUser(fs) == true){ saveResponse(response); } } getPageData(userEmailForCourse); if (isError == false) { statusToUser.add(Const.StatusMessages.FEEDBACK_RESPONSES_SAVED); } data.isSessionOpenForSubmission = isSessionOpenForSpecificUser(fs); return createSpecificShowPageResult(); }