I have been trying different things with content controls and docx4j. I added/removed couple of controls and now docx4j wont load the document anymore. Getting this error ar runtime.
org.docx4j.openpackaging.exceptions.Docx4JException: Failed to add parts from relationships'
This statement from the 'Getting started' guide caught my eye.
There is a limitation however: the xpath expressions are evaluated against the XML document as it was when first opened in docx4j. You can update the associated XML document ...