if (methodHandler != null) {
return methodHandler.processElement(proxy, method, arguments, annotation, this.framedGraph, this.element);
}
}
for (final Annotation annotation : annotations) {
AnnotationHandler annotationHandler = annotationHandlers.get(annotation.annotationType());
if (annotationHandler != null) {
return annotationHandler.processElement(annotation, method, arguments, this.framedGraph, this.element, this.direction);
}
}
if(method.getAnnotations().length == 0) {
throw new UnhandledMethodException("The method " + method.getDeclaringClass().getName() + "." + method.getName() + " has no annotations, therefore frames cannot handle the method.");