add handling of a map in freemarker template