Can someone explain why this does not work ?
StringTemplate query = new StringTemplate(\"hello \" + \"$if(param==\\\"val1\\\")$\" +
ST doesn't allow computation in the templates. That would make it part of the model.