title: Using Java 5 enums as Velocity variables
body: <p>all. I need to use java 5 enum in velocity template, so that I could write something like </p>
  
  <pre>
  public enum Level{
      INFO, ERROR;
  }
  
  Velocity template:
  
  #if($var == Level.INFO)
  ...
  #else
  ...
  #end
  </pre>
  
  <p>How can it be done?  Thanks in advance. </p>