return null;
}
}
public InvocationChain getInvocationChain(Binding binding, InterfaceContract interfaceContract, Operation operation) {
RuntimeWire wire = getRuntimeWire(binding);
if (wire == null) {
return null;
}
if (interfaceContract != null && interfaceContract != wire.getSource().getInterfaceContract()) {
try {
// FIXME: [rfeng] We could avoid clone() using a better comparison of the two interface contracts
wire = (RuntimeWire)wire.clone();
wire.getSource().setInterfaceContract(interfaceContract);
wire.rebuild();
} catch (CloneNotSupportedException e) {
throw new ServiceRuntimeException(e);
}
}
return wire.getInvocationChain(operation);
}