/** * {@inheritDocs} * @see org.jboss.aop.advice.Interceptor#invoke(org.jboss.aop.joinpoint.Invocation) */ public Object invoke(final Invocation invocation) throws Throwable { // If asynchronous if (this.isAsyncInvocation(invocation)) { // Spawn return this.invokeAsync(invocation); } // Regular synchronous call else { // Continue along the chain return invocation.invokeNext(); } }