You should be able to use a ClassPathResourceManager, something along these lines. This should read files from the classpath which would include the jars. As long as you find the right file path it should work.
ResourceManager resourceManager = new ClassPathResourceManager(CurrentClass.class.getClassLoader(),"someprefix");
ResourceHandler handler = new ResourceHandler(resourceManager);