String entryPath = entry.getName();
if (entryPath.startsWith(rootEntryPath)) {
String relativePath = entryPath.substring(rootEntryPath
.length());
if (getPathMatcher().match(subPattern, relativePath)) {
Resource resource = new JarEntryResource(jarFile, entry);
handler.handle(resource);
}
}
}
}