@Override
    protected void configure() {
        getContainerDef().resolveListeners();

        if (this.kraftEnabled) {
            configureKraft();
        } else {
            configureZookeeper();
        }
    }
@deprecated use {@link #KafkaContainer(DockerImageName)} instead
modules/kafka/src/main/java/org/testcontainers/containers/KafkaContainer.java