resolved a number of leaking resources, namely inputstreams not closed, and JarURIResolver weirdly did not read from a jar when getInputStream was called?