Object ret = null;
Method m = ic.getMethod();
Object targetObject = ic.getTarget();
Class<?> targetClass = targetObject == null ? m.getDeclaringClass()
: targetObject.getClass();
CleanupHandler cleanupHandlerAnnotation = AnnotationUtils
.findAnnotation(m, targetClass, CleanupHandler.class);
if (cleanupHandlerAnnotation == null) {
throw new IllegalStateException(
"The interceptor annotation can not be determined!");