title: Spring-Integration XML to Java
body: <p>How can I convert this code into Java config?</p>
  
  <pre><code>&lt;int-kafka:outbound-channel-adapter
          id="mainOutboundChannelAdapter"
          kafka-producer-context-ref="kafkaProducerContext"
          channel="mainOutboundTopicChanel"&gt;
  &lt;/int-kafka:outbound-channel-adapter&gt;
  </code></pre>