final String className = ClassLoaderUtil.resourceToClass(resource);
try (InputStream is = cl.getResourceAsStream(resource)) {
if (AnnotationUtil.hasClassAnnotation(WebActor.class, is))
registerWebActor(sc, cl.loadClass(className));
} catch (IOException | ClassNotFoundException e) {
sc.log("Exception while scanning class " + className + " for WebActor annotation", e);
throw new RuntimeException(e);
}
}
});
// final ClassPath classpath = ClassPath.from(cl);