Source:
<code>public void execute() { String courseId = getRequestParamValue(ParamsNames.COURSE_ID); Assumption.assertPostParamNotNull(ParamsNames.COURSE_ID, courseId); String feedbackSessionName = getRequestParamValue(ParamsNames.FEEDBACK_SESSION_NAME); Assumption.assertPostParamNotNull(ParamsNames.FEEDBACK_SESSION_NAME, feedbackSessionName); String email = getRequestParamValue(ParamsNames.RESPONDENT_EMAIL); Assumption.assertPostParamNotNull(ParamsNames.RESPONDENT_EMAIL, email); String isInstructorString = getRequestParamValue(ParamsNames.RESPONDENT_IS_INSTRUCTOR); Assumption.assertPostParamNotNull(ParamsNames.RESPONDENT_IS_INSTRUCTOR, isInstructorString); String isToBeRemovedString = getRequestParamValue(ParamsNames.RESPONDENT_IS_TO_BE_REMOVED); Assumption.assertPostParamNotNull(ParamsNames.RESPONDENT_IS_TO_BE_REMOVED, isToBeRemovedString); boolean isInstructor = Boolean.parseBoolean(isInstructorString); boolean isToBeRemoved = Boolean.parseBoolean(isToBeRemovedString); try { if (isInstructor) { if (isToBeRemoved) { logic.deleteInstructorRespondent(email, feedbackSessionName, courseId); } else { logic.addInstructorRespondent(email, feedbackSessionName, courseId); } } else { if (isToBeRemoved) { logic.deleteStudentRespondent(email, feedbackSessionName, courseId); } else { logic.addStudentRespondent(email, feedbackSessionName, courseId); } } } catch (InvalidParametersException | EntityDoesNotExistException e) { log.severe("Failed to " + (isToBeRemoved ? "remove" : "append") + " " <START> + (isInstructor ? "instructor" : "student") + " respondent"); <END> } }</code><technical_language>swallow stack trace here</technical_language>

Target:
public void execute() { String courseId = getRequestParamValue(ParamsNames.COURSE_ID); Assumption.assertPostParamNotNull(ParamsNames.COURSE_ID, courseId); String feedbackSessionName = getRequestParamValue(ParamsNames.FEEDBACK_SESSION_NAME); Assumption.assertPostParamNotNull(ParamsNames.FEEDBACK_SESSION_NAME, feedbackSessionName); String email = getRequestParamValue(ParamsNames.RESPONDENT_EMAIL); Assumption.assertPostParamNotNull(ParamsNames.RESPONDENT_EMAIL, email); String isInstructorString = getRequestParamValue(ParamsNames.RESPONDENT_IS_INSTRUCTOR); Assumption.assertPostParamNotNull(ParamsNames.RESPONDENT_IS_INSTRUCTOR, isInstructorString); String isToBeRemovedString = getRequestParamValue(ParamsNames.RESPONDENT_IS_TO_BE_REMOVED); Assumption.assertPostParamNotNull(ParamsNames.RESPONDENT_IS_TO_BE_REMOVED, isToBeRemovedString); boolean isInstructor = Boolean.parseBoolean(isInstructorString); boolean isToBeRemoved = Boolean.parseBoolean(isToBeRemovedString); try { if (isInstructor) { if (isToBeRemoved) { logic.deleteInstructorRespondent(email, feedbackSessionName, courseId); } else { logic.addInstructorRespondent(email, feedbackSessionName, courseId); } } else { if (isToBeRemoved) { logic.deleteStudentRespondent(email, feedbackSessionName, courseId); } else { logic.addStudentRespondent(email, feedbackSessionName, courseId); } } } catch (InvalidParametersException | EntityDoesNotExistException e) { log.severe("Failed to " + (isToBeRemoved ? "remove" : "append") + " " + (isInstructor ? "instructor" : "student") + " respondent: " + TeammatesException.toStringWithStackTrace(e)); } }