final List<EventDescriptor> eventDescriptors = new ArrayList<EventDescriptor>();
if (classpath != null) {
ClassAnnotator annotator = null;
String[] classPath;
if (Artifact.isArtifact(classpath)) {
ArtifactURLConfiguration artifactURLConfiguration = new ArtifactURLConfiguration(classpath);
StringBuilder artifactBuilder = new StringBuilder();
artifactBuilder.append("artifact:").append(artifactURLConfiguration.getArtifact());
annotator = new ClassAnnotator(new URL[]{new URL(artifactBuilder.toString())});
String[] cp = ResolverHelper.getResolver().getClassPathFor(classpath);
classPath = new String[cp.length];
for (int i = 0; i < classPath.length; i++) {
String s = cp[i].startsWith("file:") ? cp[i] : "file:" + cp[i];