Freemarker + Java - How to "lookup" a value using key
<p>In Java, to look up a value using the key, I would use the <code>.get</code> method:</p>

<pre><code>String value = hashmap.get(key);
</code></pre>

<p>In Freemarker, apparently <code>.get</code> is deprecated or something, because when I try to use it:</p>

<pre><code>&lt;#list hash?keys as key&gt;
    &lt;p&gt;${hash.get(key)}&lt;/p&gt;
&lt;/#list&gt;
</code></pre>

<p>it returns a null exception:</p>

<pre><code>freemarker.core.InvalidReferenceException: The following has evaluated to null or missing

----
FTL stack trace ("~" means nesting-related):
 - Failed at: ${hash.get(key)}  [in template "___.ftl" at line ___, column ___]
----
</code></pre>