Yaml deserilaisation in to objects using snakeyaml.