DiscoverResources disc = new DiscoverResources();
disc.addClassLoader(JDKHooks.getJDKHooks()
.getThreadContextClassLoader());
disc.addClassLoader(classLoader);
ResourceIterator iterator = disc
.findResources(keyStorelocation);
if (iterator.hasNext()) {
Resource resource = iterator.nextResource();
is = resource.getResourceAsStream();
}