434445464748495051
options.setIndent( 2 ); options.setWidth( 80 ); Representer representer = new ModelRepresenter(); Dumper dumper = new Dumper( representer, options ); Yaml yaml = new Yaml( dumper ); yaml.dump( model, output ); }