replaced velocity snippet by a freemarker snippet