code: public static Map<String, Object> parseYamlString(String yaml) throws IOException {
          ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
          TypeReference<HashMap<String, Object>> typeRef = new TypeReference<HashMap<String, Object>>() {
          };
          return mapper.readValue(yaml, typeRef);
      }
docs: Convenience function for parsing YAML strings.
  
  @param yaml String containing valid YAML
  @return Nested (key,value) map of arbitrary depth
  @throws IOException IO exception