public NewTopic newTopic(String topic) {
        TopicAdmin.NewTopicBuilder builder = new TopicAdmin.NewTopicBuilder(topic);
        return builder.partitions(numPartitions)
                .replicationFactor(replicationFactor)
                .config(otherConfigs)
                .build();
    }
Return the description for a new topic with the given {@code topic} name with the topic
settings defined for this topic creation group.

@param topic the name of the topic to be created

@return the topic description of the given topic with settings of this topic creation group
connect/runtime/src/main/java/org/apache/kafka/connect/util/TopicCreationGroup.java