docs: private T createBeans() throws CmsException {
  
          // create the beans for the resources
          Map<CmsResource, T> beans = new HashMap<CmsResource, T>();
          for (CmsResource resource : m_knownResources) {
              T bean = createEntry(m_cms, resource);
              if (bean != null) {
                  beans.put(resource, bean);
              }
          }
  
          // attach beans for child resources to the beans for their parents
          for (Map.Entry<CmsResource, T> entry : beans.entrySet()) {
              CmsResource key = entry.getKey();
              T bean = entry.getValue();
              for (CmsResource child : m_childMap.get(key)) {
                  T childEntry = beans.get(child);
                  if (childEntry != null) {
                      bean.addChild(childEntry);
                  }
              }
          }
          return beans.get(m_rootResource);
      }