public Map<String, String> configMapForResource(ConfigResource configResource) {
        ConfigurationImage configurationImage = data.get(configResource);
        if (configurationImage != null) {
            return configurationImage.toMap();
        } else {
            return Collections.emptyMap();
        }
    }
Return the underlying config data for a given resource as an immutable map. This does not apply
configuration overrides or include entity defaults for the resource type.
metadata/src/main/java/org/apache/kafka/image/ConfigurationsImage.java