code: protected boolean isRootContainer(CmsContainer container) {
  
          boolean isRoot = false;
          if (!container.isSubContainer()) {
              isRoot = true;
          } else if (container.isDetailOnly()) {
              CmsContainer parent = getContainer(container.getParentContainerName());
              isRoot = (parent != null) && !parent.isDetailOnly();
          }
          return isRoot;
      }
docs: Returns whether the given container is considered a root container.<p>
  
  @param container the container to check
  
  @return <code>true</code> if the given container is a root container