class URLResourceResolver implements ResourceResolver {

    @Override
    public Reader reader(String name) {

        URL modelUrl;
        try {
            modelUrl = new URL(baseUrl, name);
        } catch (MalformedURLException e) {
            throw new LmRuntimeException("Error building source URL", e);
        }

        LOGGER.info("Will extract XML from {}", modelUrl);

        try {
            return new InputStreamReader(modelUrl.openStream(), StandardCharsets.UTF_8);
        } catch (IOException e) {
            throw new LmRuntimeException("Error reading extractor config XML from URL " + modelUrl, e);
        }
    }

    public  URLResourceResolver(URL baseUrl);

}