title: Velocity Template Language: How to import EscapeTool
body: <p>I am trying to use <code>unurl</code> for my mapping template. </p>
  
  <pre><code>  $url                         -&gt; hello here &amp; there
    $esc.url($url)               -&gt; hello+here+%26+there
    $esc.unurl($esc.url($url))   -&gt; hello here &amp; there
  </code></pre>
  
  <p>I wrote the following mapping template, but <code>$esc.unurl([...])</code> doesn't work. I couldn't figure out how to fix it. One reason might be that I am missing an import, but I don't know how to import the EscapeTool properly.</p>
  
  <pre><code>#set($httpPost = $input.path('$').split("&amp;"))
  {
  #foreach( $kvPair in $httpPost )
   #set($kvTokenised = $kvPair.split("="))
   #if( $kvTokenised.size() &gt; 1 )
     "$kvTokenised[0]" : "$esc.unurl($kvTokenised[1])"#if( $foreach.hasNext ),#end
   #else
     "$kvTokenised[0]" : ""#if( $foreach.hasNext ),#end
   #end
  #end
  }
  </code></pre>