code: protected String getUriTemplate(CmsObject cms, CmsResource res) {
  
          String result = "";
          try {
              result = cms.readPropertyObject(
                  cms.getRequestContext().removeSiteRoot(res.getRootPath()),
                  CmsPropertyDefinition.PROPERTY_TEMPLATE,
                  true).getValue("");
          } catch (CmsException e) {
              // noop
          }
          return result;
      }
docs: Returns the OpenCms VFS uri of the template of the resource.<p>
  
  @param cms the initialized CmsObject
  @param res the resource where to read the template for
  
  @return the OpenCms VFS uri of the template of the resource