Apache Camel's ${file:ext} picks up everything after the first dot, instead of extension only
<p>As the title says, I am trying to get file extension using Camel's File Language to specify the correct route.</p>

<pre><code>choice().
   when().simple("${file:ext} in 'xml'").
      unmarshal(coreIt("jaxb[Core]")).
      beanRef(connectorName()+coreIt("[Core]ImportConnector"), "processXml").
   when().simple("${file:ext} in 'zip,7z'").
      beanRef(connectorName()+coreIt("[Core]ImportConnector"), "extractZip").
endChoice();
</code></pre>

<p>Problem is, client provides us with xml file that has a date in filename, separated by dots. For some reason camel treats everything after the first dot as an extension. If I do:</p>

<pre><code>when().simple("${file:ext} in '09.16.xml'").
</code></pre>

<p>it works...</p>

<p>Is there any solution or workaround apart from creating a separate folder to import xml files? Thanks for your time.</p>