Hey, we got an inconsistency-problem when adding HTML chunks to an existing wordML Package. Indexes do not match, and we don't exactly know how to solve this. Let me explain this by code. This is basically a substitution-Problem.
List<Object> texts = thisWordMLPackage.getMainDocumentPart()
.getJAXBNodesViaXPath(XPATH_TO_SELECT_TEXT_NODES, true);
CTAltChunk chunk = ... //Chunk creation works
//does not work
texts.set(index, chunk);
//does not work either
((JAXBElement) texts.get(index)).setValue(chunks);
// DOES WORK, but the list we receive with the .getContent() method ...