/** * Checks whether there are registered interceptors for the given service, and if there are, * adds them to the operation processing chain of the service. */ public void subscribeToService(Service service) { Collection<InterceptorData> interceptors = checkForInterceptor(service); if (interceptors != null) { OperationProcessingChain chain = getServiceOperationProcessingChain(service); for (InterceptorData data : interceptors) { DeferredOperationPredicate filter = new DeferredOperationPredicate(service, data.action, data.interceptor); filter.init(); chain.getFilters().add(filter); } } }