code: public Writer writeTo(Writer outArg) throws IOException {
          BufferedWriter out = new BufferedWriter(outArg);
          try {
              writeConfig("", this, out, 0, false);
          } finally {
              out.flush();
          }
  
          return outArg;
      }
docs: Writes this config object into a String serialized representation which can later be parsed back using the parse()
  method
  
  @see groovy.lang.Writable#writeTo(java.io.Writer)