spark and freemarker together