public WebDriver createWebDriver(Map<WebDriver, Map<String, Object>> sessionData) throws KiteGridException {
    if (this.webDriver != null) {
      logger.warn("createWebDriver() webdriver already exists, skipping.");
      return this.webDriver;
    }
    try {
      this.webDriver = WebDriverFactory.createWebDriver(this, null, null, this.getPaas().getGridId());
      if (sessionData!= null) {
        addToSessionMap(sessionData);
      }
      return this.webDriver;
    } catch (Exception e) {
      logger.error(ReportUtils.getStackTrace(e));
      throw new KiteGridException(
        e.getClass().getSimpleName()
          + " creating webdriver for \n"
          + this.toString()
          + ":\n"
          + e.getLocalizedMessage());
    }
  }
Constructs a the webdriver.

@throws KiteGridException the kite grid exception
KITE-Framework/src/main/java/org/webrtc/kite/config/client/Client.java