Mongo, spark, and freemarker together