code: protected void writeResource(File file, byte[] content) {
  
          try {
              File folder;
              if (content == null) {
                  // a folder is to be created
                  folder = file;
              } else {
                  // a file is to be written
                  folder = file.getParentFile();
              }
              // make sure the parent folder exists
              if (!folder.exists()) {
                  boolean success = folder.mkdirs();
                  if (!success) {
                      LOG.error(
                          Messages.get().getBundle().key(Messages.LOG_CREATE_FOLDER_FAILED_1, folder.getAbsolutePath()));
                  }
              }
              if (content != null) {
                  // now write the file to the real file system
                  OutputStream s = new FileOutputStream(file);
                  s.write(content);
                  s.close();
              }
          } catch (Exception e) {
              LOG.error(
                  Messages.get().getBundle().key(Messages.LOG_WRITE_EXPORT_POINT_FAILED_1, file.getAbsolutePath()),
                  e);
          }
      }
docs: Writes file data to the RFS.<p>
  
  @param file the RFS file location
  @param content the file content