code: public Attachment getAttachmentMetaData(String assetId, String attachmentId) throws IOException, BadVersionException, RequestFailureException {
          // At the moment can only get all attachments
          Asset ass = getAsset(assetId);
          List<Attachment> allAttachments = ass.getAttachments();
          for (Attachment attachment : allAttachments) {
              if (attachmentId.equals(attachment.get_id())) {
                  return attachment;
              }
          }
  
          // Didn't find it so just return null
          return null;
      }
docs: Returns the meta data about an attachment
  
  @param assetId
  The ID of the asset owning the attachment
  @param attachmentId
  The ID of the attachment
  @return The attachment meta data
  @throws IOException
  @throws RequestFailureException