mongodb + spark + freemarker