class YamlUtil {

  public static <T> List<T> loadList(final URL resource, final Class<T> clazz) {
    try {
      YAMLParser parser = yamlFactory.createParser(resource);
      return mapper.readValues(parser, clazz).readAll();
    } catch (IOException ioe) {
      throw new YamlLoadException(ioe);
    }
  }

  private  YamlUtil();

}