docs: public String getResourceName(Object obj) {
  
          String result;
          if (obj instanceof CmsResource) {
              result = ((CmsResource)obj).getName();
          } else {
              result = CmsResource.getName(String.valueOf(obj));
          }
          return result;
      }