@Override
    public SchemaAndValue toConnectData(String topic, byte[] value) {
        try {
            return new SchemaAndValue(Schema.OPTIONAL_BOOLEAN_SCHEMA,
                deserializer.deserialize(topic, value));
        } catch (SerializationException e) {
            throw new DataException("Failed to deserialize boolean: ", e);
        }
    }
{@link Converter} and {@link HeaderConverter} implementation that supports serializing to and
deserializing from Boolean values.
<p>
When converting from bytes to Kafka Connect format, the converter will always return an optional
BOOLEAN schema.
connect/runtime/src/main/java/org/apache/kafka/connect/converters/BooleanConverter.java