}
public Destination getDestination(EndpointInfo ei, Bus bus) throws IOException {
String address = ei.getAddress();
if (!StringUtils.isEmpty(address) && address.startsWith("soap.tcp")) {
return new SoapTcpDestination(ei.getTarget(), ei);
}
BindingInfo bi = ei.getBinding();
String transId = ei.getTransportId();
if (bi instanceof SoapBindingInfo) {
transId = ((SoapBindingInfo)bi).getTransportURI();