RabbitMQ client API has unfortunately marked classes as Serializable when they contain inner fields that themselves do not extend Serializable. This a way to get around that by only allowing Java boxed-primitives in headers