title: Spring Batch: One reader, multiple processors and writers
body: <p>In Spring batch I need to pass the items read by an ItemReader to two different processors and writer. What I'm trying to achieve is that...</p>
  
  <pre>
                          +---> ItemProcessor#1 ---> ItemWriter#1
                          |
  ItemReader ---> item ---+
                          |
                          +---> ItemProcessor#2 ---> ItemWriter#2
  </pre>
  
  <p>This is needed because items written by ItemWriter#1 should be processed in a completely different way compared to the ones written by ItemWriter#2.
  Moreover, ItemReader reads item from a database, and the queries it executes are so computational expensive that executing  the same query twice should be discarded.</p>
  
  <p>Any hint about how to achieve such set up ? Or, at least, a logically equivalent set up ?</p>