in src/main/java/com/epam/digital/data/platform/starter/restapi/service/StartupKafkaTopicsCreator.java [112:119]
private Collection<NewTopic> getNewTopics(Set<String> requiredTopics) {
return requiredTopics.stream()
.map(topicName -> new NewTopic(topicName,
kafkaProperties.getTopicProperties().getNumPartitions(),
kafkaProperties.getTopicProperties().getReplicationFactor()))
.map(topic -> topic.configs(getRetentionPolicy(topic.name())))
.collect(Collectors.toSet());
}