code: private ValidationMessage<Origin> reportError(ValidationResult result, Feature feature, String messageId, Object ... params) {
          ValidationMessage<Origin> message =
                  EntryValidations.createMessage(feature.getOrigin(), Severity.ERROR, messageId, params);
  
          if (SequenceEntryUtils.isQualifierAvailable(Qualifier.LOCUS_TAG_QUALIFIER_NAME, feature)) {
              Qualifier locusTag = SequenceEntryUtils.getQualifier(Qualifier.LOCUS_TAG_QUALIFIER_NAME, feature);
              message.appendCuratorMessage("locus tag = " + locusTag.getValue());
          }
  
          if (SequenceEntryUtils.isQualifierAvailable(Qualifier.GENE_QUALIFIER_NAME, feature)) {
              Qualifier geneName = SequenceEntryUtils.getQualifier(Qualifier.GENE_QUALIFIER_NAME, feature);
              message.appendCuratorMessage("gene = " + geneName.getValue());
          }
  
          result.append(message);
          return message;
      }
docs: Adds error to the result.
  
  @param result a reference to validation result