code: private List<CmsContainerElementBean> getInheritedElements(CmsResource resource, Locale locale, String uriParam)
      throws CmsException {
  
          CmsObject cms = getCmsObject();
          cms.getRequestContext().setLocale(locale);
          CmsInheritanceReferenceParser parser = new CmsInheritanceReferenceParser(cms);
          parser.parse(resource);
          CmsInheritanceReference ref = parser.getReference(locale);
          if (ref == null) {
              // new inheritance reference, return an empty list
              return Collections.emptyList();
          }
          String name = ref.getName();
          CmsADEManager adeManager = OpenCms.getADEManager();
          CmsInheritedContainerState result = adeManager.getInheritedContainerState(cms, cms.addSiteRoot(uriParam), name);
          return result.getElements(true);
      }
docs: Returns the sub-elements of this inherit container resource.<p>
  
  @param resource the inherit container resource
  @param locale the requested locale
  @param uriParam the current URI
  
  @return the sub-elements
  
  @throws CmsException if something goes wrong reading the resource