private Transactional readAnnotation ( MethodInvocation invocation ) { final Method method = invocation . getMethod ( ) ; if ( method . isAnnotationPresent ( Transactional . class ) ) { return method . getAnnotation ( Transactional . class ) ; } else { throw new RuntimeException ( "Could not find Transactional annotation" ) ; } }
Read the Transactional annotation for a given method invocation