code: public static String getResourceName(String keyName) {
  
          if (keyName.endsWith(CmsFlexCache.CACHE_OFFLINESUFFIX) | keyName.endsWith(CmsFlexCache.CACHE_ONLINESUFFIX)) {
              return keyName.split(" ")[0];
          } else {
              return "";
          }
      }
docs: Returns resource name from given key name.<p>
  
  @param keyName given name of key.
  @return name of resource if key is valid, otherwise ""