docs: static void writeServiceFile(Collection<String> services, OutputStream output)
        throws IOException {
      BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(output, UTF_8));
      for (String service : services) {
        writer.write(service);
        writer.newLine();
      }
      writer.flush();
    }