title: Can't find the tags for a DAM Asset
body: <p>I have an asset in my DAM. I reference it as <code>resource</code> with the following code:</p>
  
  <pre><code>    TagManager tagManager = resourceResolver.adaptTo(TagManager.class);
      Tag[] tags = tagManager.getTags(resource);
      log.warn(tags.length + " tags found for resource:" + resource.getPath());
  </code></pre>
  
  <p>This dumps into the log that my asset has 0 tags. Yet when I look at this asset in the DAM admin, it shows it has several tags.</p>
  
  <p>I am using the documentation here: <a href="https://docs.adobe.com/docs/en/cq/5-6-1/developing/tagging.html" rel="nofollow">https://docs.adobe.com/docs/en/cq/5-6-1/developing/tagging.html</a>. Does anyone know if I'm doing this right?</p>