code: private void addDiscriminator(Map<String, Object> values, EntityType entityType)
      {
          String discrColumn = ((AbstractManagedType) entityType).getDiscriminatorColumn();
          String discrValue = ((AbstractManagedType) entityType).getDiscriminatorValue();
  
          // No need to check for empty or blank, as considering it as valid name
          // for nosql!
          if (discrColumn != null && discrValue != null)
          {
              values.put(discrColumn, discrValue);
          }
      }
docs: Adds the discriminator.
  
  @param values
  the values
  @param entityType
  the entity type