public Builder setLossHandler(Consumer<UnwritableMetadataException> lossHandler) {
            this.lossHandler = lossHandler;
            return this;
        }
The options to use when writing an image.
metadata/src/main/java/org/apache/kafka/image/writer/ImageWriterOptions.java