private void createNeededNotes(AnalysisItem analysisItem, NoteService noteService) {
    if (analysisItem.getIsRejected()) {
      Note note =
          noteService.createSavableNote(
              NoteType.INTERNAL,
              StringUtil.getMessageForKey("validation.note.retest"),
              RESULT_SUBJECT,
              currentUserId);
      noteUpdateList.add(note);
    }

    if (!GenericValidator.isBlankOrNull(analysisItem.getNote())) {
      NoteType noteType = analysisItem.getIsAccepted() ? NoteType.EXTERNAL : NoteType.INTERNAL;
      Note note =
          noteService.createSavableNote(
              noteType, analysisItem.getNote(), RESULT_SUBJECT, currentUserId);
      noteUpdateList.add(note);
    }
  }
  private List<Result> createResultFromAnalysisItem(
      AnalysisItem analysisItem, AnalysisService analysisService, NoteService noteService) {

    ResultSaveBean bean = ResultSaveBeanAdapter.fromAnalysisItem(analysisItem);
    ResultSaveService resultSaveService =
        new ResultSaveService(analysisService.getAnalysis(), currentUserId);
    List<Result> results = resultSaveService.createResultsFromTestResultItem(bean, deletableList);
    if (analysisService.patientReportHasBeenDone() && resultSaveService.isUpdatedResult()) {
      analysisService.getAnalysis().setCorrectedSincePatientReport(true);
      noteUpdateList.add(
          noteService.createSavableNote(
              NoteType.EXTERNAL,
              StringUtil.getMessageForKey("note.corrected.result"),
              RESULT_SUBJECT,
              currentUserId));
    }
    return results;
  }