code: private void writeContent() throws CmsException {
  
          String decodedContent = m_content.toString();
          try {
              m_file.setContents(decodedContent.getBytes(getFileEncoding()));
          } catch (UnsupportedEncodingException e) {
              throw new CmsException(Messages.get().container(Messages.ERR_INVALID_CONTENT_ENC_1, getParamResource()), e);
          }
          // the file content might have been modified during the write operation
          CmsObject cloneCms = getCloneCms();
          CmsUUID tempProjectId = OpenCms.getWorkplaceManager().getTempFileProjectId();
          cloneCms.getRequestContext().setCurrentProject(getCms().readProject(tempProjectId));
          m_file = cloneCms.writeFile(m_file);
          m_content = CmsXmlContentFactory.unmarshal(cloneCms, m_file);
  
      }
docs: Writes the xml content to the vfs and re-initializes the member variables.<p>
  
  @throws CmsException if writing the file fails