Combined MongoDB, Spark and Freemarker together