Spark, FreeMarker and Mongo Integration