code: public CmsUgcSession createSession(CmsObject cms, HttpServletRequest request, CmsUgcConfiguration config)
      throws CmsUgcException {
  
          CmsUgcSession session = createSession(cms, config);
          HttpSession httpSession = request.getSession(true);
          httpSession.setAttribute("" + session.getId(), session);
          return session;
      }
docs: Creates a new editing session.<p>
  
  @param cms the cms context
  @param request the request
  @param config the configuration
  
  @return the form session
  
  @throws CmsUgcException if creating the session fails