streamWriter.writeCharacters(""); // Force completion of open elems
getMarshaller().marshal(signature, os);
return;
}
}else if (streamWriter instanceof XMLStreamWriterEx) {
CustomStreamWriterImpl swi = new CustomStreamWriterImpl(streamWriter);
getMarshaller().marshal(signature, swi);
} else {
getMarshaller().marshal(signature, streamWriter);
}