} else {
loader = new URLClassLoader(urls, Thread.currentThread().getContextClassLoader());
}
for (String className : classNames) {
Class<?> cl = loader.loadClass(className);
eventDescriptors.add(new EventDescriptor(cl, getID(cl)));
}
} else {
for (String className : classNames) {
Class<?> cl = Thread.currentThread().getContextClassLoader().loadClass(className);
eventDescriptors.add(new EventDescriptor(cl, getID(cl)));
}
}
return eventDescriptors;
}