Source:
<code>public ActionResult execute() { String courseId = getNonNullRequestParamValue(Const.ParamsNames.COURSE_ID); InstructorCreateRequest instructorRequest = getAndValidateRequestBody(InstructorCreateRequest.class); InstructorAttributes instructorToEdit = extractUpdatedInstructor(courseId, instructorRequest); updateToEnsureValidityOfInstructorsForTheCourse(courseId, instructorToEdit); try { if (instructorRequest.getId() == null) { logic.updateInstructor( InstructorAttributes .updateOptionsWithEmailBuilder(instructorToEdit.courseId, instructorRequest.getEmail()) .withName(instructorToEdit.name) .withDisplayedName(instructorToEdit.displayedName) .withIsDisplayedToStudents(instructorToEdit.isDisplayedToStudents) .withPrivileges(instructorToEdit.privileges) .withRole(instructorToEdit.role) .build()); } else { logic.updateInstructorCascade( InstructorAttributes .updateOptionsWithGoogleIdBuilder(instructorToEdit.courseId, instructorRequest.getId()) .withEmail(instructorToEdit.email) .withName(instructorToEdit.name) .withDisplayedName(instructorToEdit.displayedName) .withIsDisplayedToStudents(instructorToEdit.isDisplayedToStudents) .withPrivileges(instructorToEdit.privileges) .withRole(instructorToEdit.role) .build()); } } catch (InvalidParametersException e) { return new JsonResult(e.getMessage(), HttpStatus.SC_BAD_REQUEST); } catch (EntityDoesNotExistException ednee) { return new JsonResult(ednee.getMessage(), HttpStatus.SC_NOT_FOUND); } <START> return new JsonResult("The changes to the instructor " + instructorRequest.getName() <END> + " has been updated.", HttpStatus.SC_OK); }</code><technical_language>"The instructor " + instructorRequest.getName() + " updated"</technical_language>

Target:
public ActionResult execute() { String courseId = getNonNullRequestParamValue(Const.ParamsNames.COURSE_ID); InstructorCreateRequest instructorRequest = getAndValidateRequestBody(InstructorCreateRequest.class); InstructorAttributes instructorToEdit = extractUpdatedInstructor(courseId, instructorRequest); updateToEnsureValidityOfInstructorsForTheCourse(courseId, instructorToEdit); try { if (instructorRequest.getId() == null) { logic.updateInstructor( InstructorAttributes .updateOptionsWithEmailBuilder(instructorToEdit.courseId, instructorRequest.getEmail()) .withName(instructorToEdit.name) .withDisplayedName(instructorToEdit.displayedName) .withIsDisplayedToStudents(instructorToEdit.isDisplayedToStudents) .withPrivileges(instructorToEdit.privileges) .withRole(instructorToEdit.role) .build()); } else { logic.updateInstructorCascade( InstructorAttributes .updateOptionsWithGoogleIdBuilder(instructorToEdit.courseId, instructorRequest.getId()) .withEmail(instructorToEdit.email) .withName(instructorToEdit.name) .withDisplayedName(instructorToEdit.displayedName) .withIsDisplayedToStudents(instructorToEdit.isDisplayedToStudents) .withPrivileges(instructorToEdit.privileges) .withRole(instructorToEdit.role) .build()); } } catch (InvalidParametersException e) { return new JsonResult(e.getMessage(), HttpStatus.SC_BAD_REQUEST); } catch (EntityDoesNotExistException ednee) { return new JsonResult(ednee.getMessage(), HttpStatus.SC_NOT_FOUND); } return new JsonResult("The instructor " + instructorRequest.getName() + " has been updated.", HttpStatus.SC_OK); }