The following freemarker code causes an exception
<#assign i= it.getList().size()> <#list it.getList() as elem> <#if i==1> ${
I figured out, that it did not understood the syntax for the size built-in. The right syntax for assigning the size of a list to a local variable is
size
<#assign i = it.getList()?size>