code: public DiscriminatorJdbcSubBuilder when(String value, Class<? extends T> type) {
          return when(value, (Type)type);
      }
docs: Add a discriminator value with its associated class.
  @param value the value
  @param type the class
  @return the current builder