moved freemarker to context listener