Please note that most expressions have a different syntax depending on if it is in a XL block (delimited with [ ]) or a java block (delimited with { }).
[
]
{
}