FreeMarker is a java based template engine for complex template processing.
This requires the library freemarker-2.3.16.jar to be in classpath.
The following example shows using LOOPVAR_index and LOOPVAR_has_next special loop variables.
The first one is a loop count index and other is a boolean specifying whether the current
item is last in the sequence or not.