if (debug !=null) { debug.println("ClassLoader for "+resourceInJar+" in jar "+codebase); try { debug.println("cl "+cl.getClass().getName()); debug.println("cl.getResource(resourceInJar): "+ cl.getResource(resourceInJar).toString()); } catch (Throwable ex) { ex.printStackTrace(); } }
    static InputStream getResourceHelper(String resourceInJar, String codebase)            throws ClassNotFoundException, IOException {        ClassLoader cl = getClassLoader(codebase);        return getURLAsStream(cl.getResource(resourceInJar));    }