code: protected CmsResource fillResource(CmsObject cms, Element element, CmsUUID resourceId) throws CmsException {
  
          String xpath = element.getPath();
          int pos = xpath.lastIndexOf("/" + XmlNode.Containers.name() + "/");
          if (pos > 0) {
              xpath = xpath.substring(pos + 1);
          }
          CmsRelationType type = getHandler().getRelationType(xpath);
          CmsResource res = cms.readResource(resourceId, CmsResourceFilter.IGNORE_EXPIRATION);
          CmsXmlVfsFileValue.fillEntry(element, res.getStructureId(), res.getRootPath(), type);
          return res;
      }
docs: Fills a {@link CmsXmlVfsFileValue} with the resource identified by the given id.<p>
  
  @param cms the current CMS context
  @param element the XML element to fill
  @param resourceId the ID identifying the resource to use
  
  @return the resource
  
  @throws CmsException if the resource can not be read