Added wraper for adding attributes to freemarker