Velocity template as a String in Java

I have a java String which is basically a velocity template. String vt = "#foreach ($number in [1..34]) $number += $number #end" String result = *String_vt_calculated_by_Velocity_Engine*; System...