XMLDescriptor xmlDescriptor = (XMLDescriptor) descriptor;
NamespaceResolver namespaceResolver = xmlDescriptor.getNamespaceResolver();
MarshalContext marshalContext = null;
if(xmlDescriptor.isSequencedObject()) {
SequencedObject sequencedObject = (SequencedObject) object;
marshalContext = new SequencedMarshalContext(sequencedObject.getSettings());
} else {
marshalContext = ObjectMarshalContext.getInstance();
}
if(null == nonAttributeChildren) {
textNode.marshal((MarshalRecord)record, object, session, namespaceResolver, marshaller, marshalContext, rootFragment);