InterfaceContract bindingInterfaceContract = getWSDLBindingInterfaceContract();
if (!bindingInterfaceContract.getInterface().isRemotable()) {
throw new IllegalStateException("This method should only have been called for a remotable interface.");
}
Operation wsdlBindingOperation = interfaceContractMapper.map(bindingInterfaceContract.getInterface(), sourceOperation);
return new WSDLMediateTransformer(mediator, sourceOperation, wsdlBindingOperation, targetOperation);
} else {
return new SameDBCopyTransformer(mediator, sourceOperation, targetOperation);
}
}