title: cast XPath Expression to Boolean in Apache Camel
body: <p>I have xml with flag:<code>&lt;ns4:flag&gt;false&lt;/ns4:flag&gt;</code>. And I want to read this flag and set it's value to FLAG property: </p>
  
  <pre><code>.setProperty( FLAG, xpath("//*[local-name()='flag']/text()", Boolean.class))
  </code></pre>
  
  <p>Using code above I get 'true' value instead of 'false'. Also tried <code>resultType(Boolean.class)</code> and <code>boolean()</code> xpath function inside expression, but it didn't work out. Any ideas how can I do this cast?</p>