docs: private String getWrappedResourceName(Resource resource)
      {
          String resourceName = resource.getResourceName();
          if (resourceName != null)
          {
              return resourceName;
          }
  
          if (resource instanceof ResourceWrapper)
          {
              return getWrappedResourceName(((ResourceWrapper) resource).getWrapped());
          }
  
          return null;
      }