return TransportFactory.bind(bind);
}
private Transport createRemoteTransport(final Transport local) throws Exception {
Transport transport = TransportFactory.compositeConnect(remote);
CompositeTransport ct = transport.narrow(CompositeTransport.class);
if (ct != null && localUri != null && proxyToLocalBroker) {
ct.add(false, new URI[] { localUri });
}
// Add a transport filter so that we can track the transport life cycle