code: public static String getSerializedElementInfo(
          CmsObject cms,
          HttpServletRequest request,
          HttpServletResponse response,
          CmsContainerElementBean elementBean,
          CmsContainerPageBean page)
      throws Exception {
  
          CmsContainerElement result = new CmsContainerElement();
          CmsElementUtil util = new CmsElementUtil(
              cms,
              cms.getRequestContext().getUri(),
              page,
              null,
              request,
              response,
              false,
              cms.getRequestContext().getLocale());
          util.setElementInfo(elementBean, result);
          return CmsGwtActionElement.serialize(I_CmsContainerpageService.class.getMethod("getElementInfo"), result);
      }
docs: Returns the serialized element data.<p>
  
  @param cms the cms context
  @param request the servlet request
  @param response the servlet response
  @param elementBean the element to serialize
  @param page the container page
  
  @return the serialized element data
  
  @throws Exception if something goes wrong