code: protected static String getResourceName(CmsObject cms, I_CmsResourceContainer contentContainer) {
  
          if ((contentContainer != null) && (contentContainer.getResourceName() != null)) {
              return contentContainer.getResourceName();
          } else if (cms != null) {
              return cms.getRequestContext().getUri();
          } else {
              return null;
          }
      }
docs: Returns the resource name currently processed.<p>
  
  @param cms the current OpenCms user context
  @param contentContainer the current resource container
  
  @return the resource name currently processed