}
private void setupDefaultHandlers() {
availableHandlers = Collections.unmodifiableMap(new LinkedHashMap<String, TransportHandler>() {
{
put(Capabilities.WebSockets.name(), new WebsocketHandler(transportToBusCallback, ClientMessageBusImpl.this));
put(Capabilities.SSE.name(), new SSEHandler(transportToBusCallback, ClientMessageBusImpl.this));
put(Capabilities.LongPolling.name(),
HttpPollingHandler.newLongPollingInstance(transportToBusCallback, ClientMessageBusImpl.this));
put(Capabilities.ShortPolling.name(),
HttpPollingHandler.newShortPollingInstance(transportToBusCallback, ClientMessageBusImpl.this));