code: public static void writeGenerators( IGeneratorSet generators, OutputStream outputStream)
      {
      try( GeneratorSetJsonWriter writer = new GeneratorSetJsonWriter( outputStream))
        {
        writer.write( generators);
        }
      catch( Exception e)
        {
        throw new RuntimeException( "Can't write generator definitions", e);
        }
      }
docs: Writes a JSON document describing the given generator definitions to the given output stream.