code: public AttachmentPart createAttachmentPart(DataHandler dataHandler) {
          AttachmentPart attachment = createAttachmentPart();
          attachment.setDataHandler(dataHandler);
          return attachment;
      }
docs: Creates an <code>AttachmentPart</code> object and populates it using
  the given <code>DataHandler</code> object.
  
  @param dataHandler
  the <code>javax.activation.DataHandler</code> object that
  will generate the content for this <code>SOAPMessage</code>
  object
  @return a new <code>AttachmentPart</code> object that contains data
  generated by the given <code>DataHandler</code> object
  @exception IllegalArgumentException
  if there was a problem with the specified <code>DataHandler</code>
  object
  @see javax.activation.DataHandler
  @see javax.activation.DataContentHandler