code: private CmsContainerPageBean getPage(CmsResource pageResource) throws CmsException {
  
          CmsContainerPageBean result = null;
          if ((pageResource != null) && CmsResourceTypeXmlContainerPage.isContainerPage(pageResource)) {
              CmsXmlContainerPage xmlContainerPage = CmsXmlContainerPageFactory.unmarshal(m_cms, pageResource, m_request);
              result = xmlContainerPage.getContainerPage(m_cms);
              CmsModelGroupHelper modelHelper = new CmsModelGroupHelper(
                  m_cms,
                  OpenCms.getADEManager().lookupConfiguration(m_cms, pageResource.getRootPath()),
                  CmsJspTagEditable.isEditableRequest(m_request) && (m_request instanceof HttpServletRequest)
                  ? CmsADESessionCache.getCache((HttpServletRequest)m_request, m_cms)
                  : null,
                  CmsContainerpageService.isEditingModelGroups(m_cms, pageResource));
              result = modelHelper.readModelGroups(xmlContainerPage.getContainerPage(m_cms));
          }
          return result;
      }
docs: Returns the container page bean for the give resource.<p>
  
  @param pageResource the resource
  
  @return the container page bean
  
  @throws CmsException in case reading the page bean fails