spark, mangoDB, freemarker - all together