title: How to aggregate based on the value of the header in apache camel?
body: <p>I have a camel aggregate correlation expression as below in spring dsl.</p>
  <pre><code>&lt;correlationExpression&gt;
   &lt;simple&gt;${header.Method}-${header.Type}&lt;/simple&gt;
  &lt;/correlationExpression&gt;
  </code></pre>
  <p>I want to aggregate records based on the value of header.Type. e.g. I have three values in header.Type, that is GET, SET, and GO and header.Method is constant for all the three types.</p>
  <p>I want to have GET and SET aggregated in one record but if header.Type is equals to GO then it should be aggregated separately.</p>