Extend Serializable in KafkaWriter