title: ResourceAware Implementation in ItemProcessor returns resource as Null
body: <p>I know the question i am asking have been asked may times here. But even after referring those answers my problem is not yet solved.So i am posting it again</p>
  
  <p>I need to read the name of the resource currently being processed in ItemProcessor. For that i am trying to use <strong>ResourceAware</strong> marker Interface which have the setResource Method which we need to implement. As per my reading if we are using MultiResourceItemReader the ResourceAware`s setResourceMethod should be called and thus we can get the reference to the current item which is processed. But for some reason this is not happening. Please find my below configurations</p>
  
  <pre><code>&lt;step id="readChatLogsData"&gt;
  &lt;tasklet&gt;
      &lt;chunk reader="multiResourceReader" processor="chatProcessor" writer="mongodbItemWriter" commit-interval="100"&gt;
      &lt;/chunk&gt;
  &lt;/tasklet&gt;
  &lt;/step&gt;
  
  &lt;beans:bean id="multiResourceReader" class="org.springframework.batch.item.file.MultiResourceItemReader" scope="step"&gt;
      &lt;beans:property name="resources" value="file:*.log" /&gt;
      &lt;beans:property name="delegate" ref="chatReader" /&gt;
  &lt;/beans:bean&gt;
  
  
  &lt;beans:bean id="chatReader" class="org.springframework.batch.item.file.FlatFileItemReader"&gt;
      &lt;beans:property name="lineMapper" ref="tickerLineMapper" /&gt;
  &lt;/beans:bean&gt;
  &lt;beans:bean id="tickerLineMapper"
      class="org.springframework.batch.item.file.mapping.DefaultLineMapper"&gt;
      &lt;beans:property name="fieldSetMapper" ref="chatMapper" /&gt;
      &lt;beans:property name="lineTokenizer" ref="tickerLineTokenizer" /&gt;
  &lt;/beans:bean&gt;
  &lt;beans:bean id="tickerLineTokenizer"
      class="org.springframework.batch.item.file.transform.DelimitedLineTokenizer"&gt;
      &lt;beans:property name="delimiter" value="^A" /&gt;
      &lt;beans:property name="names" value="A,B,C" /&gt;
  &lt;/beans:bean&gt;
  
  public class ChatProcessor  implements ItemProcessor&lt;SingleChatFileInput,String&gt;, ResourceAware
  </code></pre>
  
  <p>Please let me know if i am doing something wrong here or i am missing anythings.
  Also please suggest if there is any other way to achieve this.</p>