public void stream(Response response) {
if (response.getResponseType() == ResponseType.BROWSER_PANIC) {
try {
BrowserPanic panic = gson.fromJson(response.getResponse(),
response.getResponseType().type);
BrowserPanicException exception =
new BrowserPanicException(panic.getBrowserInfo(),
"");
logger.error("Browser not found : {}\n Exception: {}",
new Object[]{response.getResponse(),
exception});
throw exception;