public final Object invokeNextInterceptor ( InvocationContext ctx , VisitableCommand command ) throws Throwable { Object maybeStage = nextInterceptor . visitCommand ( ctx , command ) ; if ( maybeStage instanceof SimpleAsyncInvocationStage ) { return ( ( InvocationStage ) maybeStage ) . get ( ) ; } else { return maybeStage ; } }
Invokes the next interceptor in the chain . This is how interceptor implementations should pass a call up the chain to the next interceptor .