@Override
    public URL getURL() throws IOException {
        URL url;
        if (this.clazz != null) {
            url = this.clazz.getResource(this.path);
        } else {
            url = this.classLoader.getResource(this.path);
        }
        if (url == null) {
            throw new FileNotFoundException(getDescription() + " cannot be resolved to URL because it does not exist");
        }
        return url;
    }
This implementation returns a URL for the underlying class path resource.

@return the url.
@see java.lang.ClassLoader#getResource(String)
@see java.lang.Class#getResource(String)
src/main/java/spark/resource/ClassPathResource.java