DocumentFragment childResults = null;
if (unmarshalledNode instanceof ContentAccessor) {
childResults = document.createDocumentFragment();
AbstractVisitorExporterGenerator<CC> generator = getFactory().createInstance(conversionContext, document, childResults);
new TraversalUtil(((ContentAccessor)unmarshalledNode).getContent(), generator);
} else if (unmarshalledNode instanceof org.docx4j.wml.Pict) {
// if it contains a textbox..
// repeating this...
org.docx4j.vml.CTTextbox textBox = getTextBox((org.docx4j.wml.Pict)unmarshalledNode);
if (textBox!=null) {
childResults = document.createDocumentFragment();
AbstractVisitorExporterGenerator<CC> generator = getFactory().createInstance(conversionContext, document, childResults);
new TraversalUtil(textBox.getTxbxContent().getContent(), generator);
}
}
Node resultNode =