}
else if (url.getProtocol().equals("jar")) {
int pos = url.getPath().lastIndexOf("!/");
URL jarURL = new URL(url.getPath().substring(0, pos));
String path = url.getPath().substring(pos + 2);
ZipIterator i = ZipIterator.create(jarURL);
try {
while (i.hasNext()) {
ZipEntry entry = i.next();
if (entry.getName().startsWith(path)) {
addEntry(url, entry.getName().substring(path.length()), i.getStreamFactory());
}
}
}
finally {
Utils.close(i);