title: Call java methods with array parameters from Velocity
body: <p>I am writing a velocity template file (.vm) in which I get this class with reflection:</p>
  
  <pre><code>#set ($assetEntryQuery = $portal.getClass().forName("com.liferay.portlet.asset.service.persistence.AssetEntryQuery").getConstructor().newInstance())
  </code></pre>
  
  <p>then I create an array and call this function:</p>
  
  <pre><code>#set ($arr = ['$category.getCategoryId()'])
  $assetEntryQuery.setStart(0)
  $assetEntryQuery.setEnd(6)
  $assetEntryQuery.setAllCategoryIds($arr)
  </code></pre>
  
  <p>Unfortunately the setAllCategoryIds accepts an array long[], and not a Velocity array. What I get on the website is "$assetEntryQuery.setAllCategoryIds($arr)" being printed. Does any of you have any idea how to make it work?</p>