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