code: public static List<CmsResource> getDetailOnlyResources(CmsObject cms, CmsResource resource) {
  
          List<CmsResource> result = new ArrayList<CmsResource>();
          Set<String> resourcePaths = new HashSet<String>();
          String sitePath = cms.getSitePath(resource);
          for (Locale locale : OpenCms.getLocaleManager().getAvailableLocales()) {
              resourcePaths.add(getDetailOnlyPageNameWithoutLocaleCheck(sitePath, locale.toString()));
          }
          // in case the deprecated locale less detail container resource exists
          resourcePaths.add(getDetailOnlyPageNameWithoutLocaleCheck(sitePath, null));
          // add the locale independent detail container resource
          resourcePaths.add(getDetailOnlyPageNameWithoutLocaleCheck(sitePath, LOCALE_ALL));
          for (String path : resourcePaths) {
              try {
                  CmsResource detailContainers = cms.readResource(path, CmsResourceFilter.IGNORE_EXPIRATION);
                  result.add(detailContainers);
              } catch (CmsException e) {
                  // will happen in case resource does not exist, ignore
              }
          }
          return result;
      }
docs: Returns a list of detail only container pages associated with the given resource.<p>
  
  @param cms the cms context
  @param resource the resource
  
  @return the list of detail only container pages