LOG.fine("Failure to prepare a message from conduit selector");
if (ex.getCause() instanceof BusException) {
String code = ((BusException)ex.getCause()).getCode();
if ("NO_CONDUIT_INITIATOR".equals(code)) {
ConduitInitiatorManager cim = cfg.getBus().getExtension(ConduitInitiatorManager.class);
ClientOnlyHTTPTransportFactory factory = new ClientOnlyHTTPTransportFactory();
factory.setBus(cfg.getBus());
cim.registerConduitInitiator(
cfg.getConduitSelector().getEndpoint().getEndpointInfo().getTransportId(), factory);
cfg.getConduitSelector().prepare(message);
} else {
throw ex;