title: How to loop all variables in VelocityContext?
body: <p>In my Velocity template (.vm file) how can I loop through all the variables or attributes present in <code>VelocityContext</code>? In reference to the below code, I would like the template to write the names and count of all the fruits passed in context.</p>
  
  <pre><code>Map&lt;String, Object&gt; attribues = ...;
  attribues.put("apple", "5");
  attribues.put("banana", "2");
  attribues.put("orange", "3");
  
  VelocityContext velocityContext = new VelocityContext(attribues);
  velocityEngine.mergeTemplate(templateLocation, encoding, velocityContext, writer);
  </code></pre>