Converting YAML to CSV using Java