@ Override public void beforeMethodSent ( final MethodCallBuilder methodBuilder ) { if ( methodBuilder . getOriginatingRequest ( ) == null ) { final Optional < Request < Object > > request = requestContext . getRequest ( ) ; if ( request . isPresent ( ) ) { methodBuilder . setOriginatingRequest ( request . get ( ) ) ; } } }
Intercept the call before it gets sent to the service queue .