Yaml generator java