code: public CmsResource createXmlContent() throws CmsUgcException {
  
          checkNotFinished();
          checkEditResourceNotSet();
  
          CmsUgcSessionSecurityUtil.checkCreateContent(m_cms, m_configuration);
          try {
              I_CmsResourceType type = OpenCms.getResourceManager().getResourceType(m_configuration.getResourceType());
              m_editResource = m_cms.createResource(getNewContentName(), type);
              return m_editResource;
          } catch (CmsException e) {
              LOG.error(e.getLocalizedMessage(), e);
              throw new CmsUgcException(e, CmsUgcConstants.ErrorCode.errMisc, e.getLocalizedMessage());
          }
      }
docs: Creates a new edit resource.<p>
  
  @return the newly created resource
  
  @throws CmsUgcException if creating the resource fails