code: public static void write(LogView logView, String path) throws IOException {
                  String xml = xstream.toXML(logView);
                  try (BufferedWriter out = new BufferedWriter(new FileWriter(path))) {
                          out.write(xml);
                  }
          }
docs: Serializes the log view under the given path.
  
  @param logView Log view to serialize.
  @param path Target path of the serialized log view.
  @throws IOException If the log view can't be written under the given
  path.