I have two MailMerge tables, of which one can be empty.
I use
doc.getMailMerge().setCleanupOptions(MailMergeCleanupOptions.REMOVE_UNUSED_REGIONS);
to not render the table at all, if it is empty.
The problem is, the t…...debug("Running Mail Merge for table '{}'", tableName);...template with data by executing mail merge with regions once to get...