Have new instance of the chromedriver inherit katalon desired capabilities

How can I get a new instance of the chrome webdriver to inherit the desired capabilities defined in katalon?

Here’s an extract of my code.

System.setProperty(“webdriver.chrome.driver”, DriverFactory.getChromeDriverPath());

ChromeOptions options = new ChromeOptions()

DesiredCapabilities capabilities = new DesiredCapabilities()

capabilities.setCapability(ChromeOptions.CAPABILITY, options)

WebDriver driver = new ChromeDriver(capabilities)

DriverFactory.changeWebDriver(driver)

WebUI.navigateToUrl(url)

As far as I know, there is no concept of inheriting desired capabilities from a WebDriver instance to another.