Serialize a Source DataHandler quantity.
if (value != null) {
if (!(value instanceof StreamSource)) {
throw new IOException(Messages.getMessage("badSource",
value.getClass().getName()));
}
DataHandler dh = new DataHandler(new SourceDataSource("source",
"text/xml", (StreamSource) value));
super.serialize(name, attributes, dh, context);
}