code: private synchronized void readAttachmentsFromAsset(Asset ass) {
          Collection<Attachment> attachments = ass.getAttachments();
  
          _attachments = new HashMap<String, AttachmentResourceImpl>();
          if (attachments != null) {
              for (Attachment at : attachments) {
                  _attachments.put(at.getName(), new AttachmentResourceImpl(at));
  
                  if (at.getType() == AttachmentType.CONTENT) {
                      _contentAttached = true;
                  }
              }
          }
  
      }
docs: Read the attachments from the supplied asset and create an AttachmentResource to represent them
  and then store them in our AttachmentResource list
  
  @param ass
  @throws RepositoryBackenAttachment