class YamlJobConfiguration implements JobConfiguration {

    public static YamlJobConfiguration load(InputStream inputStream) {
        Yaml yaml = new Yaml(new CustomClassLoaderConstructor(YamlJobConfiguration.class,
                                                              Thread.currentThread().getContextClassLoader()));
        return yaml.loadAs(inputStream, YamlJobConfiguration.class);
    }

}