@Override
    public void onMetadataUpdate(
        MetadataDelta delta,
        MetadataImage newImage,
        LoaderManifest manifest
    ) {
        log.trace("onMetadataUpdate newImage={}", newImage);
        state.setRoot(new RootShellNode(newImage));
    }
Publishes changes to the Kafka Metadata Shell.
shell/src/main/java/org/apache/kafka/shell/state/MetadataShellPublisher.java