public AbstractHTTPDestination createDestination(EndpointInfo endpointInfo, Bus bus,
DestinationRegistry registry) throws IOException {
if (endpointInfo.getAddress().startsWith("ws")) {
// for the embedded mode, we stick with jetty.
JettyHTTPServerEngineFactory serverEngineFactory = bus
.getExtension(JettyHTTPServerEngineFactory.class);
return new JettyWebSocketDestination(bus, registry, endpointInfo, serverEngineFactory);
} else {
//REVISIT other way of getting the registry of http so that the plain cxf servlet finds the destination?
registry = getDestinationRegistry(bus);