Parsing yaml using SnakeYAML