code: protected String createTempFile() throws CmsException {
  
          return OpenCms.getWorkplaceManager().createTempFile(getCms(), getParamResource(), getSettings().getProject());
      }
docs: Creates a temporary file which is needed while working in an editor with preview option.<p>
  
  @return the file name of the temporary file
  @throws CmsException if something goes wrong