code: @Override
      public void init(Driver d, Properties properties) {
          // Cookies to store to session
          this.storeCookiesInSession = Parameters.STORE_COOKIES_IN_SESSION.getValue(properties);
          // Cookies to discard
          this.discardCookies = Parameters.DISCARD_COOKIES.getValue(properties);
  
          // Verify configuration
          if (this.storeCookiesInSession.contains("*") && this.storeCookiesInSession.size() > 1) {
              throw new ConfigurationException("storeCookiesInSession must be a list of cookie names OR *");
          }
          if (this.discardCookies.contains("*") && this.discardCookies.size() > 1) {
              throw new ConfigurationException("discardCookies must be a list of cookie names OR *");
          }
          if (this.storeCookiesInSession.contains("*") && this.discardCookies.contains("*")) {
              throw new ConfigurationException(
                      "cannot use * for storeCookiesInSession AND discardCookies at the same time");
          }
      }
docs: Init cookie manager. Reads parameters <b>discardCookies</b> and <b>storeCookiesInSession</b>.