code: public void produceStrings(String topic, String... values) {
          try (KafkaProducer<String, String> producer = createStringProducer()) {
              Map<String, String> data = Arrays.stream(values)
                      .collect(Collectors.toMap(k -> String.valueOf(k.hashCode()), Function.identity()));
              produce(topic, producer, data);
          }
      }
docs: Convenience method to produce a set of strings to the specified topic
  
  @param topic  Topic to produce to
  @param values Values produce