title: How to fix Velocity's ParseErrorException?
body: <p>I'm passing to velocity template comma separated values and while starting I receive ParseErrorException.   How to fix it?</p>
  
  <pre><code>#set ($test=StringUtils.split($filterFieldCSV,","))
  
      #foreach ( $filterField in $test )
      &lt;!-- process something here --&gt;
  #end
  
  
  
  Caused by: org.apache.velocity.exception.ParseErrorException: Encountered "StringUtils" at t-50[line 3, column 12] Was expecting one of:
      "[" ...
      "{" ...
      "(" ...
      &lt;WHITESPACE&gt; ...
      &lt;STRING_LITERAL&gt; ...
      "true" ...
      "false" ...
      &lt;INTEGER_LITERAL&gt; ...
      &lt;FLOATING_POINT_LITERAL&gt; ...
      &lt;IDENTIFIER&gt; ...
      "{" ...
      &lt;LOGICAL_NOT&gt; ...
          at org.apache.velocity.Template.process(Template.java:141)  at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:446)  at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:354)   at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400)   at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1380)   at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:401)
  </code></pre>