//InterfaceContract targetContract = getLeafInterfaceContract(endpoint);
if (sourceContract == null && targetContract != null) {
// TODO: until the web component introspection is brought up
try {
sourceContract = (InterfaceContract)targetContract.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException(e);
}
}