class TopicsSpec extends Message {

    public Map<String, PartitionsSpec> materialize() {
        HashMap<String, PartitionsSpec> all = new HashMap<>();
        for (Map.Entry<String, PartitionsSpec> entry : map.entrySet()) {
            String topicName = entry.getKey();
            PartitionsSpec partitions = entry.getValue();
            for (String expandedTopicName : StringExpander.expand(topicName))
                all.put(expandedTopicName, partitions);
        }
        return all;
    }

    @JsonCreator public  TopicsSpec();
    private  TopicsSpec(Map<String, PartitionsSpec> map);

}