} catch (IllegalArgumentException ex) {
dataHandlerWriter = null;
}
if (dataHandlerWriter != null) {
DataHandlerWriterAttachmentMarshaller am = new DataHandlerWriterAttachmentMarshaller();
writer = new XOPDecodingStreamWriter(writer, am);
marshaller.setAttachmentMarshaller(am);
}
}
marshaller.marshal(object, writer);
} catch (JAXBException ex) {