title: Velocity templates - Syntax for passing variables to methods
body: <p>I am trying to construct a "friendly" email message based on a database lookup and cannot seem to nail down the right syntax for the following:</p>
  
  <pre><code>System.out.println(TagFunctions.getConstantValue(4, "val1", Integer.parseInt(selectedFiling.getRejectionReason())));
  </code></pre>
  
  <p>I realize that I could just evaluate this within my class file, but the desire is to be able to make database changes without deploying again.</p>
  
  <p>I believe that I am missing some curly braces here, but I nothing that I have tried has worked.</p>
  
  <pre><code>$tagFunctions.getConstantValue(4, "val1", $Integer.parseInt($selectedFiling.rejectionReason))
  </code></pre>