combine spark and freemarker