}
public void saveObject(DataObject sdo, XMLStreamWriter writer, Map options) throws XMLStreamException {
XMLStreamReader reader = createXMLStreamReader(sdo);
options = checkSetOptions(options);
new XMLStreamSerializer().serialize(new XMLDocumentStreamReader(reader), writer, options);
}