@Override
    public InputStream getInputStream() throws IOException {
        InputStream is;
        if (this.clazz != null) {
            is = this.clazz.getResourceAsStream(this.path);
        } else {
            is = this.classLoader.getResourceAsStream(this.path);
        }
        if (is == null) {
            throw new FileNotFoundException(getDescription() + " cannot be opened because it does not exist");
        }
        return is;
    }
This implementation opens an InputStream for the given class path resource.

@return the input stream.
@see java.lang.ClassLoader#getResourceAsStream(String)
@see java.lang.Class#getResourceAsStream(String)
src/main/java/spark/resource/ClassPathResource.java