title: Spring Batch Processor
body: <p>I have a requirement in Spring Batch where I have a file with thousands of records coming in a sorted order.The key field is product code.
  The file may have multiple records of the same product code.The requirement is that I have to group the records that have the same
  product Code in a collection (i.e List) and then send them over to a method i.e validateProductCodes(List prodCodeList).
  I am looking for the best way to do this.The approach I thought of was to read every record in the Processor and then build a collection 
  of records for the same product code in the processor.If at any point in the processor,if the product code in the record is different than it would imply that
  the productCode grouping is complete and the validateProductCodes() can be called for that group of records with the same product code.Also I am using a Step.So does 
  not that automatically mean that the process is multithreaded?Meaning Groups of records with same productCode will be processed in a multithreaded way.Please advise.</p>
  
  <p>Thanks</p>