Class targetClass = targetMethod.getDeclaringClass();
ErrorHandlers errorHandlers = (ErrorHandlers) targetClass.getAnnotation(ErrorHandlers.class);
addToList(errorHandlers, errorHandlerList);
/* See if there is a single error handler present at the class level if so add it to the list. */
ErrorHandler errorHandler = (ErrorHandler) targetClass.getAnnotation(ErrorHandler.class);
addToList(errorHandlerList, errorHandler);
/* Find the annotation. */
errorHandlers = AnnotationUtils.findAnnotation(targetMethod, ErrorHandlers.class);
addToList(errorHandlers, errorHandlerList);