private InputStream resolveFromClassPath(String systemId) throws IOException, URISyntaxException {
        InputStream source;

        String xsdPath;
        URI uri = new URI(systemId);
        if (uri.getScheme().equalsIgnoreCase("file")) {
            xsdPath = uri.toString();
        } else {
            xsdPath = uri.getPath();
            if (xsdPath.charAt(0) == '/') {
                xsdPath = xsdPath.substring(1);
            }
        }

        ClassLoader localClassLoader = getClass().getClassLoader();

        LOG.debug("Trying to locate [{}] via ClassLoader [{}]", xsdPath, localClassLoader.getClass().getSimpleName());

        //Attempt to find within this JAR
        URL url = localClassLoader.getResource(xsdPath);
        if (url == null) {
            //Attempt to find via user defined class loader
            DozerClassLoader dozerClassLoader = beanContainer.getClassLoader();

            LOG.debug("Trying to locate [{}] via DozerClassLoader [{}]", xsdPath, dozerClassLoader.getClass().getSimpleName());

            url = dozerClassLoader.loadResource(xsdPath);
        }

        if (url == null) {
            //Attempt to find via OSGi
            Bundle bundle = Activator.getBundle();
            if (bundle != null) {
                LOG.debug("Trying to locate [{}] via Bundle [{}]", xsdPath, bundle.getClass().getSimpleName());

                url = bundle.getResource(xsdPath);
            }
        }

        if (url == null) {
            throw new IOException("Could not resolve bean-mapping XML Schema [" + systemId + "]: not found in classpath; " + xsdPath);
        }

        try {
            source = url.openStream();
        } catch (IOException ex) {
            throw new IOException("Could not resolve bean-mapping XML Schema [" + systemId + "]: not found in classpath; " + xsdPath, ex);
        }

        LOG.debug("Found bean-mapping XML Schema [{}] in classpath @ [{}]", systemId, url.toString());

        return source;
    }
Attempt to resolve systemId resource from classpath by checking:

1. Try {@link SchemaLSResourceResolver#getClass()#getClassLoader()}
2. Try {@link BeanContainer#getClassLoader()}
3. Try {@link Activator#getBundle()}

@param systemId systemId used by XSD
@return stream to XSD
@throws IOException if fails to find XSD
core/src/main/java/com/github/dozermapper/core/builder/xml/SchemaLSResourceResolver.java