WordprocessingMLPackage output = org.docx4j.model.fields.merge.MailMerger.getConsolidatedResultCrude(wordMLPackage, data, true);
// System.out.println(XmlUtils.marshaltoString(output.getMainDocumentPart().getJaxbElement(), true, true));
output.save(new java.io.File(
System.getProperty("user.dir") + "/OUT_FieldsMailMerge.docx") );
} else {
// Need to keep the MERGEFIELDs. If you don't, you'd have to clone the docx, and perform the
// merge on the clone. For how to clone, see the MailMerger code, method getConsolidatedResultCrude