code: public Attachment attachment(String name, BaseAsset asset,
                                   String filename, InputStream stream)
              throws AttachmentLengthExceededException,
              ApplicationUnavailableException {
          return attachment(name, asset, filename, stream, null);
      }
docs: Create a new attachment with a name.
  
  @param name     The name of the attachment.
  @param asset    The asset this attachment belongs to.
  @param filename The name of the original attachment file.
  @param stream   The read-enabled stream that contains the attachment
  content to upload.
  @return A newly minted Attachment that exists in the VersionOne system.
  @throws AttachmentLengthExceededException
  if attachment is too long.
  @throws ApplicationUnavailableException
  if appears any problem with
  connection to service.