private static Map<Operation<?>, OutboundInvocationChain> createInvocationChains(Class<?> interfaze)
throws InvalidServiceContractException {
Map<Operation<?>, OutboundInvocationChain> invocations = new HashMap<Operation<?>, OutboundInvocationChain>();
JavaInterfaceProcessorRegistry registry = new JavaInterfaceProcessorRegistryImpl();
ServiceContract<?> contract = registry.introspect(interfaze);
for (Operation operation : contract.getOperations().values()) {
OutboundInvocationChain chain = new OutboundInvocationChainImpl(operation);
invocations.put(operation, chain);
}
return invocations;