SessionManager.Ticket<BrowserImpl.Session> ticket) throws IOException {
this.tabId = tabId;
this.connectionTicket = ticket;
String tabIdString = String.valueOf(tabId);
ChromeDevToolOutput chromeDevToolOutput = new ChromeDevToolOutput(tabIdString, connection);
this.devToolSessionManager = new ChromeDevToolSessionManager(this, chromeDevToolOutput);
ToolHandler toolHandler = devToolSessionManager.getToolHandler();
// After this statement we are responsible for dismissing our ticket (we do it via eos message).
getBrowserConnectionSession().registerTab(tabId, toolHandler,
this.devToolSessionManager.getDebugSession());