}
if (module instanceof Module) {
final AnnotationFinder annotationFinder = new AnnotationFinder(new DebugArchive(new ConfigurableClasspathArchive((Module) module, url)));
enableFinderOptions(annotationFinder);
finder = annotationFinder.link();
} else {
final AnnotationFinder annotationFinder = new AnnotationFinder(new DebugArchive(new ConfigurableClasspathArchive(module.getClassLoader(), url)));
enableFinderOptions(annotationFinder);
finder = annotationFinder.link();
}