title: How can I access to a property in a Hashmap in Apache Camel 2.14.1?
body: <p>I'm pretty new working in Camel, I have the next doubt, how can I access to a property in a HashMap in Apache Camel 2.14.1?</p>
  
  <p>I have the next declared bean</p>
  
  <pre><code>    &lt;bean id="mapRegion" class="java.util.HashMap"&gt;
          &lt;constructor-arg&gt;
              &lt;map key-type="java.lang.String" value-type="java.lang.String"&gt;
                  &lt;entry key="R01" value="one" /&gt;
                  &lt;entry key="R02" value="two" /&gt;
              &lt;/map&gt;
          &lt;/constructor-arg&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>If I print the map with camel, I can see the values</p>
  
  <pre><code>&lt;log message="*** MAP = ${ref:mapRegion}" loggingLevel="DEBUG" /&gt;
  *** MAP = {R02=two, R01=one}
  </code></pre>
  
  <p>How can I access to an especific property in the map? I have tried with</p>
  
  <pre><code>&lt;log message="*** MAP = ${ref:mapRegion.R01}" loggingLevel="DEBUG" /&gt;
  &lt;log message="*** MAP = ${ref:mapRegion[R01]}" loggingLevel="DEBUG" /&gt;
  &lt;log message="*** MAP = ${ref:mapRegion['R01']}" loggingLevel="DEBUG" /&gt;
  </code></pre>
  
  <p>But non of this are working, always is printing empty value.</p>
  
  <p>Thanks in advance</p>