When the same listener is used for multiple groups, it would be useful if the application could have access to which group a record came from.
By adding the group to the ConsumerRecord.headers() it will be mapped, and available in the @KafkaListener as @Header parameter.