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);
}