producer to send Object instead of byte array