class JarResource implements Resource {

    @Override
    public URL getResource(String location) {
        URL result = null;
        if (location != null) {
            try {
                try (JarFile jar = new JarFile(jarFile)) {
                    if (jar.getJarEntry(location) != null) {
                        result = new URL("jar:" + jarFile.toURI() + "!/" + location);
                    }
                }
            } catch (IOException ioe) {
                result = null;
            }
        }
        return result;
    }

    public  JarResource();
    public  JarResource(File jarFile);

}