if(WebDriver.class.isAssignableFrom(event.getDroneType())) {
WebDriver driver = event.getInstance().asInstance(WebDriver.class);
// We need to navigate somewhere before we can set a cookie.
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=20975
driver.get(holder.get().getURI() + "/../");
driver.manage().deleteAllCookies();
driver.manage().addCookie(new Cookie("JSESSIONID", holder.get().getSessionId()));
}
}
private String authenticate(URI authUri) {