docs: private String getElementContent(CmsContainerElementBean element, CmsResource formatter, CmsContainer container)
      throws CmsException, ServletException, IOException {
  
          element.initResource(m_cms);
          TemplateBean templateBean = CmsADESessionCache.getCache(m_req, m_cms).getTemplateBean(
              m_cms.addSiteRoot(m_currentPageUri),
              true);
          String oldUri = m_cms.getRequestContext().getUri();
          try {
              m_cms.getRequestContext().setUri(m_currentPageUri);
              CmsContainerBean containerBean = null;
              if ((m_standardContext.getPage() != null)
                  && m_standardContext.getPage().getContainers().containsKey(container.getName())) {
                  containerBean = m_standardContext.getPage().getContainers().get(container.getName());
              } else {
                  containerBean = new CmsContainerBean(
                      container.getName(),
                      container.getType(),
                      container.getParentInstanceId(),
                      container.isRootContainer(),
                      container.getMaxElements(),
                      Collections.<CmsContainerElementBean> emptyList());
              }
              if (containerBean.getWidth() == null) {
                  containerBean.setWidth(String.valueOf(container.getWidth()));
              }
              containerBean.setDetailOnly(container.isDetailOnly());
              m_standardContext.setContainer(containerBean);
              m_standardContext.setElement(element);
              m_standardContext.setEdited(true);
              // to enable 'old' direct edit features for content-collector-elements,
              // set the direct-edit-provider-attribute in the request
              I_CmsDirectEditProvider eb = new CmsAdvancedDirectEditProvider();
              eb.init(m_cms, CmsDirectEditMode.TRUE, element.getSitePath());
              m_req.setAttribute(I_CmsDirectEditProvider.ATTRIBUTE_DIRECT_EDIT_PROVIDER, eb);
              m_req.setAttribute(CmsTemplateContextManager.ATTR_TEMPLATE_BEAN, templateBean);
              String encoding = m_res.getCharacterEncoding();
              return (new String(
                  OpenCms.getResourceManager().getLoader(formatter).dump(m_cms, formatter, null, m_locale, m_req, m_res),
                  encoding)).trim();
          } finally {
              m_cms.getRequestContext().setUri(oldUri);
          }
      }