code: public Attachment createAttachment(String name, String fileName, InputStream stream)
              throws AttachmentLengthExceededException, ApplicationUnavailableException {
          return getInstance().create().attachment(name, this, fileName, stream);
      }
docs: Create an attachment that belongs to this asset.
  
  @param name     The name of the attachment.
  @param fileName The name of the original attachment file.
  @param stream   The read-enabled stream that contains the attachment.
  content to upload.
  @return {@code Attachment} object with corresponding parameters.
  @throws AttachmentLengthExceededException
  if attachment is too long.
  @throws ApplicationUnavailableException
  if any problem appears during
  connection to the server.