I'm looking for the proper way to add a themeOverride to a chart without having to add the @XMLRootElement annotation to CTBaseStylesOverride and compile my own version of docx4j. I'm currently getting this Exception when I call SaveToZipFile.save():
Caused by: com.sun.istack.SAXException2: unable to marshal type "org.docx4j.dml.CTBaseStylesOverride" as an element because it is missing an @XmlRootElement annotation
Sample code:
Chart c = new Chart(new PartName("/ppt/charts/chart" + (chartId) + ".xml"));
CTBaseStylesOverride override = new CTBaseStylesOverride();
//set override ...