Selenium 3.6.0 & webdriver = new FirefoxDriver(capabilities) - deprecated?

From https://raw.githubusercontent.com/SeleniumHQ/selenium/master/rb/CHANGES

3.4.1 (2017-06-13)
==================
Firefox:
  * Added new Firefox::Options class that should be used to customize browser
    behavior (command line arguments, profile, preferences, Firefox binary, etc.).
    The instance of options class can be passed to driver initialization using
    :options key. Old way of passing these customization directly to driver
    initialization is deprecated.

From the 3.4.1 version the FirefoxOptions should be used.


Changed the following code 'FirefoxDriver(capabilities) to firefoxOptions which uses .setCapcability()

FirefoxOptions firefoxOptions = new FirefoxOptions();
    firefoxOptions.setCapability("marionette", true);
    webdriver = new FirefoxDriver(firefoxOptions);