connect Spark and Freemarker