private ContextConfig createNewConfig()

in src/main/java/com/amazonaws/mskdatagen/core/Context.java [252:268]


    private ContextConfig createNewConfig(ConfigType configType, String topic, List<ContextConfig> contextConfigs) {
        ContextConfig newConfig = null;
        if (configType == ConfigType.GLOBAL_CONFIG) {
            newConfig = new GlobalConfigs();
        } else if (configType == ConfigType.RETAINED_CONFIG) {
            newConfig = new RetainedConfig(topic);
        } else if (configType == ConfigType.TOPIC_CONFIG) {
            newConfig = new TopicConfigs(topic);
        } else if (configType == ConfigType.ATTR_CONFIG) {
            newConfig = new AttrConfigs(topic);
        } else if (configType == ConfigType.GENERATORS_CONFIG) {
            newConfig = new GeneratorsConfigs(topic);
        }

        contextConfigs.add(newConfig);
        return newConfig;
    }