// We don't need to synchronize as replacing the "ws-decoder" will
 // process using the same thread.
 private void invokeOnSucces(Channel channel, WebSocketUpgradeHandler h) {
   if (!h.touchSuccess()) {
     try {
       h.onSuccess(nettyConfig.getNettyWebSocketFactory().newNettyWebSocket(channel, config));
     } catch (Exception ex) {
       logger.warn("onSuccess unexpected exception", ex);
     }
   }
 }