*/
public static void writeDataHandler(XMLStreamWriter writer, DataHandlerProvider dataHandlerProvider,
String contentID, boolean optimize) throws IOException, XMLStreamException {
DataHandlerWriter dataHandlerWriter = internalGetDataHandlerWriter(writer);
if (dataHandlerWriter != null) {
dataHandlerWriter.writeDataHandler(dataHandlerProvider, contentID, optimize);
} else {
writeBase64(writer, dataHandlerProvider.getDataHandler());
}
}
}