Configuration cfg = new Configuration(); Template tpl = cfg.getTemplate(template); tpl.process(datamodel, output);