canvas.setOtherAttachments(Arrays.asList(attachment1, attachment2, attachment3));
JAXBContext context = JAXBContext.newInstance(Canvas.class);
JAXBContext clientContext = JAXBContext.newInstance(shapes.draw.Canvas.class);
Marshaller marshaller = context.createMarshaller();
AttachmentMarshaller attachmentHandler = new AttachmentMarshaller() {
public String addMtomAttachment(DataHandler data, String elementNamespace, String elementLocalName) {
return null;
}
public String addMtomAttachment(byte[] data, int offset, int length, String mimeType, String elementNamespace, String elementLocalName) {