while (resources.hasMoreElements()) {
final URL nextElement = resources.nextElement();
// Slipt out just the jar file name
final JarFile jarFile = new JarFile(new File(new URI(nextElement.getPath().split("!")[0])));
// Go throught all elements in jar and ask for annotation for those in pkg
for (Enumeration e = jarFile.entries(); e.hasMoreElements();) {
JarEntry current = (JarEntry) e.nextElement();
final String name = current.getName();
// Is at least from the same package as pkg and it is a class
if (name.length() > path.length() && name.substring(0, path.length()).equals(path) && name.endsWith(".class")) {
try {