code: public static void write(ReconfigurationPlan plan, File f) {
          try (OutputStreamWriter out = makeOut(f)) {
              write(plan, out);
          } catch (IOException e) {
              throw new IllegalArgumentException(e);
          }
      }
docs: Write a reconfiguration plan.
  
  @param plan the reconfiguration plan to write
  @param f    the output file. If it ends with '.gz' it will be gzipped
  @throws IllegalArgumentException if an error occurred while writing the json