title: Kafka consumer get message as string from recovery context
body: <p>I created a config class for consumer with RetryTemplate and RecoveryCallback.</p>
  <p>I want to just when works RecoveryCallback get consumer message as string. Anyway to do this?</p>
  <pre><code>  @Bean
    public ConcurrentKafkaListenerContainerFactory&lt;?, ?&gt; kafkaListenerContainerFactory(
        ConcurrentKafkaListenerContainerFactoryConfigurer factoryConfigurer,
        ConsumerFactory&lt;Object, Object&gt; kafkaConsumerFactory) {
      ConcurrentKafkaListenerContainerFactory&lt;Object, Object&gt; factory = new ConcurrentKafkaListenerContainerFactory&lt;&gt;();
      factoryConfigurer.configure(factory, kafkaConsumerFactory);
      factory.setRetryTemplate(kafkaRetry());
  //    factory.setErrorHandler(kafkaErrorHandler);
      factory.setRecoveryCallback((context -&gt; {
        ConsumerRecord record = (ConsumerRecord) context.getAttribute(&quot;record&quot;);
        log.info(&quot;Record value {}&quot;, record.value());
        System.out.println(&quot;========&quot;);
        System.out.println(&quot;========&quot;);
        return Optional.empty();
      }));
      return factory;
    }
  
    public RetryTemplate kafkaRetry() {
      RetryTemplate retryTemplate = new RetryTemplate();
      FixedBackOffPolicy fixedBackOffPolicy = new FixedBackOffPolicy();
      fixedBackOffPolicy.setBackOffPeriod(backOffPeriod);
      retryTemplate.setBackOffPolicy(fixedBackOffPolicy);
      SimpleRetryPolicy simpleRetryPolicy = new SimpleRetryPolicy(maxAttempts);
      retryTemplate.setRetryPolicy(simpleRetryPolicy);
      return retryTemplate;
    }
  
  </code></pre>
  <p>Let me explain what I want to do. I want retry 3-4 times consume if not success when call fallback just save consumer message to database like json string. Just I cannot get message from consumer like json string in Fallback</p>