code: protected String getName(CmsObject cms, CmsResource resource, CmsUUID parentId) {
  
          return parentId == null ? resource.getRootPath() : resource.getName();
      }
docs: Gets the name to display for the given resource.<p>
  
  @param cms the CMS context
  @param resource a resource
  @param parentId the id of the parent of the resource
  
  @return the name for the given resoure