code: public static CmsResource getInheritanceGroupContentByName(CmsObject cms, String name) throws CmsException {
  
          String oldSiteRoot = cms.getRequestContext().getSiteRoot();
          try {
              cms.getRequestContext().setSiteRoot("");
              List<CmsResource> resources = cms.readResourcesWithProperty(
                  "/",
                  CmsPropertyDefinition.PROPERTY_KEYWORDS,
                  name);
              Iterator<CmsResource> resourceIter = resources.iterator();
              while (resourceIter.hasNext()) {
                  CmsResource currentRes = resourceIter.next();
                  if (!OpenCms.getResourceManager().getResourceType(currentRes).getTypeName().equals(
                      "inheritance_group")) {
                      resourceIter.remove();
                  }
              }
              if (resources.isEmpty()) {
                  throw new CmsVfsResourceNotFoundException(
                      org.opencms.gwt.Messages.get().container(
                          org.opencms.gwt.Messages.ERR_INHERITANCE_GROUP_NOT_FOUND_1,
                          name));
              }
              return resources.get(0);
          } finally {
              cms.getRequestContext().setSiteRoot(oldSiteRoot);
          }
      }
docs: Finds the inheritance group content with a given internal name.<p>
  
  Currently this is implemented as a property search, which may be potentially slow.<p>
  
  @param cms the current CMS context
  @param name the name to search
  
  @return the inheritance group resource
  
  @throws CmsException if something goes wrong