title: Spring batch .How to chain multiple itemProcessors with diffrent types?
body: <p>i have to compose 2 processors as following :</p>
  <ul>
  <li><code>processor 1</code> implement the <code>itemProcessor</code> Interface with  <code>itemProcessor&lt;A,B&gt;</code> (transforming data).</li>
  <li><code>processor 2</code> implement the <code>itemProcessor</code> Interface with  <code>itemProcessor&lt;B,B&gt;</code>.(treat transformed data).</li>
  </ul>
  <p>the <code>CompositeItemProcessor&lt;I, O&gt;</code> requires the delegates to be in the same type , moreover when passing it to the <code>Step</code>  the step is already configure with fixed types <code>&lt;A,B&gt;</code>.</p>
  <p>how i could chain these processors with different types and assign it to the <code>step</code> processor ?</p>