code: public String getContentByContainer(CmsFile elementFile, String elementId, CmsContainer container) {
  
          CmsContainerElementBean element = CmsADESessionCache.getCache(m_req, m_cms).getCacheContainerElement(elementId);
          element = element.clone();
          element.setTemporaryFile(elementFile);
          CmsFormatterConfiguration configs = getFormatterConfiguration(element.getResource());
          return getContentByContainer(element, container, configs);
      }
docs: Returns the HTML content for the given resource and container.<p>
  
  @param elementFile the element resource file
  @param elementId the element id
  @param container the container
  
  @return the HTML content