code: private CmsUgcContent readContent(CmsUgcSession session, CmsResource resource) throws CmsException {
  
          CmsUgcContent formContent = new CmsUgcContent();
          Map<String, String> contentValues = session.getValues();
          formContent.setContentValues(contentValues);
          formContent.setSessionId(session.getId());
          formContent.setResourceType(OpenCms.getResourceManager().getResourceType(resource).getTypeName());
          formContent.setSitePath(getCmsObject().getSitePath(resource));
          formContent.setStrucureId(resource.getStructureId());
          return formContent;
      }
docs: Reads the form content information.<p>
  
  @param session the editing session
  @param resource the edited resource
  
  @return the form content
  
  @throws CmsException if reading the info fails