Refactoring regarding to Stas' comments was applied
Freemarker playing