code: private boolean hasModelGroupAncestor(CmsJspStandardContextBean standardContext) {
  
          boolean result = false;
          if (!standardContext.isModelGroupPage()) {
              CmsContainerElementWrapper parent = standardContext.getElement();
              while ((parent != null) && !result) {
                  result = parent.isModelGroup();
                  parent = parent.getParent();
              }
          }
          return result;
      }
docs: Evaluates if this container is nested within a model group.<p>
  
  @param standardContext the standard context
  
  @return <code>true</code> if the container has model group ancestors