Interceptor interceptor)
throws InvalidServiceContractException {
Map<Operation<?>, OutboundInvocationChain> invocations = new HashMap<Operation<?>, OutboundInvocationChain>();
ServiceContract<?> contract = REGISTRY.introspect(interfaze);
for (Operation<?> operation : contract.getOperations().values()) {
OutboundInvocationChain chain = new OutboundInvocationChainImpl(operation);
if (interceptor != null) {
chain.addInterceptor(interceptor);
}
invocations.put(operation, chain);
}
return invocations;
}