/** * Computes the next interceptor to call for a given operation. If we find none, * we return the proxy to the nexus. * * @param operationContext The operation context * @return The next interceptor in the list for this operation */ protected Interceptor getNextInterceptor( OperationContext operationContext ) { String currentInterceptor = operationContext.getNextInterceptor(); if ( currentInterceptor.equals( "FINAL" ) ) { return finalInterceptor; } Interceptor interceptor = directoryService.getInterceptor( currentInterceptor ); return interceptor; }