class JsonSchemaUtil {

    public static Map<String, Object> load(ClassLoader cl, String processId, String taskName) {
        Path jsonFile = jsonDir.resolve(getFileName(getJsonSchemaName(processId, taskName)));
        try (InputStream in = cl.getResourceAsStream(jsonFile.toString())) {
            if (in == null) {
                throw new IllegalArgumentException("Cannot find file " + jsonFile + " in classpath");
            }
            return load(in);
        } catch (IOException io) {
            throw new IllegalStateException("Error loading schema " + jsonFile, io);
        }
    }

    private  JsonSchemaUtil();

}