docs: protected void writeFile2Rfs(CmsFile file, String name) throws IOException {
  
          String fileName = getRfsFileName(name);
          File rfsFile = new File(fileName);
          if (!rfsFile.getParentFile().exists()) {
              rfsFile.getParentFile().mkdirs();
          }
          rfsFile.createNewFile();
          FileOutputStream rfsFileOut = new FileOutputStream(rfsFile);
          rfsFileOut.write(file.getContents());
          rfsFileOut.close();
      }