disc.addClassLoader(classLoader);
ResourceIterator iterator = disc
.findResources(keyStorelocation);
if (iterator.hasNext()) {
Resource resource = iterator.nextResource();
is = resource.getResourceAsStream();
}
if (is == null) {
iterator = disc.findResources("META-INF/"
+ keyStorelocation);
if (iterator.hasNext()) {
Resource resource = iterator.nextResource();
is = resource.getResourceAsStream();
}
}
}
if (is == null) {
throw new Exception("specified keystore doesn't exist");