public Conduit getConduit(EndpointInfo ei, EndpointReferenceType target, Bus bus) throws IOException {
String address = target == null ? ei.getAddress() : target.getAddress().getValue();
if (!StringUtils.isEmpty(address) && address.startsWith("soap.tcp://")) {
//TODO - examine policies and stuff to look for the sun tcp policies
return new TCPConduit(ei);
}
BindingInfo bi = ei.getBinding();
String transId = ei.getTransportId();
if (bi instanceof SoapBindingInfo) {
transId = ((SoapBindingInfo)bi).getTransportURI();