private static URLClassLoader createClassLoader(List<String> classpathElements, String... paths) {
        List<URL> urls = new ArrayList<>();
        for (String path : paths) {
            URL url = pathToUrl(path);
            urls.add(url);
        }
        for (Object object : classpathElements) {
            if (object != null) {
                String path = object.toString();
                URL url = pathToUrl(path);
                urls.add(url);
            }
        }
        return createURLClassLoader(urls);
    }
private static URLClassLoader createClassLoader ( List < String > classpathElements , String ... paths ) { List < URL > urls = new ArrayList < > ( ) ; for ( String path : paths ) { URL url = pathToUrl ( path ) ; urls . add ( url ) ; } for ( Object object : classpathElements ) { if ( object != null ) { String path = object . toString ( ) ; URL url = pathToUrl ( path ) ; urls . add ( url ) ; } } return createURLClassLoader ( urls ) ; }
====================================================