freemarker, spark and mongo