class YamlFileResourceProvider {

    public static YamlFileResource loadFromFile(File file) {
        try {
            return new YamlFileResource(file);
        } catch (ParserException e) {
            throw new YamlParseException(file.getPath(), e);
        }
    }

    private  YamlFileResourceProvider();

}