code: URLClassLoader createUrlClassLoader(
              final List<String> classpathElements,
              final ClassLoader contextClassLoader)
              throws MojoExecutionException {
          try {
              final URL[] urls = new URL[classpathElements.size()];
              int i = 0;
              for (final String classpathElement : classpathElements) {
                  urls[i++] = new File(classpathElement).toURI().toURL();
              }
              return URLClassLoader.newInstance(urls, contextClassLoader);
          } catch (final MalformedURLException e) {
              throw new MojoExecutionException("Unable to instantiate class loader", e);
          }
      }
docs: /* package private