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