WIP : First pass at making the kafka serializer generic