@SuppressWarnings({ "unchecked", "rawtypes" })
public static void register(Class javaClass, Scope scope) {
for (Class innerClass : javaClass.getDeclaredClasses()) {
Def signature = (Def) innerClass.getAnnotation(Def.class);
if (signature != null) {
registerMethod(scope, innerClass, signature.value());
}
}
}