title: Mule : Print Key and Value in ForEach
body: <p>I want to print both key and value in ForEach. I am able to get the Keyset but not individual key.</p>
  
  <pre><code>&lt;set-variable variableName="fileContents" value="#[message.payload]" /&gt;
  
  &lt;foreach collection="#[message.payload]"&gt;
      &lt;logger message="#[fileContents.keySet()]" level="INFO" doc:name="Logger"/&gt;
      &lt;logger message="#[message:payload]" level="INFO" doc:name="Logger"/&gt;
  
  &lt;/foreach&gt; 
  </code></pre>