code: public static void write(ReconfigurationPlan plan, Appendable a) {
          try {
              ReconfigurationPlanConverter c = new ReconfigurationPlanConverter();
              c.toJSON(plan).writeJSONString(a);
          } catch (IOException | JSONConverterException e) {
              throw new IllegalArgumentException(e);
          }
      }
docs: Write a reconfiguration plan.
  
  @param plan the plan to write
  @param a    the stream to write on.
  @throws IllegalArgumentException if an error occurred while writing the json