See https://stackoverflow.com/questions/51658210/implementing-a-stateful-message-listener-in-spring-kafka/51658517#51658517