return isCapsuleClass(clazz.getSuperclass());
}
private static Object createClassLoader(Path path) throws IOException {
try {
return new PathClassLoader(new Path[]{path}, true);
// return jar == null ? new PathClassLoader(new Path[]{path}) : new URLClassLoader(new URL[]{path.toUri().toURL()});
} catch (NoClassDefFoundError e) {
throw new AssertionError(e);
}
}