title: Create object in velocity template
body: <p>I am writing velocity templates for my liferay theme and I am wondering, whether it is possible to create a new object inside the velocity template.</p>
  
  <p>The reason is that in liferay there is no contextTool registered in the context and I really want to be able to inspect the variables that are present in the template at a given time.
  There is a cool macro for this, but unfortunately it uses the contexttool.</p>
  
  <p>I'd like to do something like:</p>
  
  <pre><code>#set($contextTool = new ContextTool())
  </code></pre>
  
  <p>Another solution would be java code that is provided with the liferay theme that is able to add stuff in the template context. But I don't know how this would work either... ;-)</p>