title: Mule originalFilename is null
body: <p>I am creating a process using Mule 3.4.1 which after processing a file it writes out the file with a specific filename. 
  The input filename is:     MMDDYYYY_sys_newhires.csv
  The processed filename is: MMDDYYYY_sys_newhires_NNN.csv</p>
  
  <p>The code that i am using is below:</p>
  
  <pre><code>#[filename = message.inboundProperties.originalFilename;
    filename= com.cfa.apps.icims.mule.CounterSingleton.getInstance().getCount() 
           +  filename.substring(0,filename.length() -1 -4) + ".csv";
    filename]
  </code></pre>
  
  <p>The problem exists in the first line. message.inboundProperties.originalFilename.</p>
  
  <p>I have tried a number of different combinations</p>
  
  <pre><code>message.inboundProperties.originalFilename
  message.inboundProperties['originalFilename']
  message.inboundProperties.originalFileName
  message.inboundProperties['originalFileName']
  message.inboundProperties.sourceFilename
  message.inboundProperties['sourceFilename']
  message.inboundProperties.sourceFileName
  message.inboundProperties['sourceFileName']
  </code></pre>
  
  <p>Now I have also tried nesting the #[header:originalFilename], this works by itself, but you can't nest the expression within the code at least as far as I know.</p>
  
  <p>Any help?</p>
  
  <p><strong>UPDATE:</strong> I am using the inbound file transport </p>