Source:
<code>private void extractFeedbackParticipantCommentsData(FeedbackQuestionAttributes questionAttributes, int questionIndex, FeedbackResponseAttributes response, int responseIndex) { if (!questionAttributes.getQuestionDetails().isFeedbackParticipantCommentsOnResponsesAllowed()) { return; } String commentId = getRequestParamValue(Const.ParamsNames.FEEDBACK_RESPONSE_COMMENT_ID + "-" + questionIndex + "-" + responseIndex); String commentText; if (commentId == null) { <START> commentText = getRequestParamValue(Const.ParamsNames.FEEDBACK_RESPONSE_COMMENT_ADD_TEXT + "-" <END> + questionIndex + "-" + responseIndex); } else { commentText = getRequestParamValue(Const.ParamsNames.FEEDBACK_RESPONSE_COMMENT_TEXT + "-" + questionIndex + "-" + responseIndex); } if (commentText == null || commentText.isEmpty()) { return; } FeedbackResponseCommentAttributes feedbackResponseComment = FeedbackResponseCommentAttributes .builder(courseId, feedbackSessionName, response.giver, new Text(commentText)) .withCreatedAt(Instant.now()) .withGiverSection(response.giverSection) .withReceiverSection(response.recipientSection) .withCommentFromFeedbackParticipant(true) .withVisibilityFollowingFeedbackQuestion(true) .withShowCommentTo(questionAttributes.showResponsesTo) .withShowGiverNameTo(questionAttributes.showGiverNameTo) .withFeedbackQuestionId(questionAttributes.getFeedbackQuestionId()) .withCommentGiverType(questionAttributes.giverType) .build(); if (commentId == null) { feedbackResponseComment.feedbackResponseId = feedbackResponseComment.feedbackQuestionId + "%" + response.giver + "%" + response.recipient; commentsToSave.add(feedbackResponseComment); } else { feedbackResponseComment.setId(Long.parseLong(commentId)); feedbackResponseComment.feedbackResponseId = response.getId(); commentsToUpdate.add(feedbackResponseComment); } }</code><technical_language>edit add ID</technical_language>

Target:
private void extractFeedbackParticipantCommentsData(FeedbackQuestionAttributes questionAttributes, int questionIndex, FeedbackResponseAttributes response, int responseIndex) { if (!questionAttributes.getQuestionDetails().isFeedbackParticipantCommentsOnResponsesAllowed()) { return; } String commentId = getRequestParamValue(Const.ParamsNames.FEEDBACK_RESPONSE_COMMENT_ID + "-" + questionIndex + "-" + responseIndex); String commentText; if (commentId == null) { commentText = getRequestParamValue(Const.ParamsNames.FEEDBACK_RESPONSE_COMMENT_ADD_TEXT + "-" + questionIndex + "-" + responseIndex); } else { commentText = getRequestParamValue(Const.ParamsNames.FEEDBACK_RESPONSE_COMMENT_TEXT + "-" + questionIndex + "-" + responseIndex); } if (commentText == null || commentText.isEmpty()) { return; } FeedbackResponseCommentAttributes feedbackResponseComment = FeedbackResponseCommentAttributes .builder(courseId, feedbackSessionName, response.giver, new Text(commentText)) .withCreatedAt(Instant.now()) .withGiverSection(response.giverSection) .withReceiverSection(response.recipientSection) .withCommentFromFeedbackParticipant(true) .withVisibilityFollowingFeedbackQuestion(true) .withShowCommentTo(questionAttributes.showResponsesTo) .withShowGiverNameTo(questionAttributes.showGiverNameTo) .withFeedbackQuestionId(questionAttributes.getFeedbackQuestionId()) .build(); if (questionAttributes.giverType == FeedbackParticipantType.SELF) { feedbackResponseComment.commentGiverType = FeedbackParticipantType.INSTRUCTORS; } else { feedbackResponseComment.commentGiverType = questionAttributes.giverType; } if (commentId == null) { feedbackResponseComment.feedbackResponseId = feedbackResponseComment.feedbackQuestionId + "%" + response.giver + "%" + response.recipient; commentsToSave.add(feedbackResponseComment); } else { feedbackResponseComment.setId(Long.parseLong(commentId)); feedbackResponseComment.feedbackResponseId = response.getId(); commentsToUpdate.add(feedbackResponseComment); } }