And even i dont see change in local state for that temp profile created under /private/...
Example below:
Map<String,Boolean>data = new HashMap<>();
data.put("customApp",false);
Map<String, Object> prefs = new HashMap<String, Object>();
prefs.put("protocol_handler.excluded_schemes",data);
DesiredCapabilities caps = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("prefs", prefs);
caps.setCapability(ChromeOptions.CAPABILITY, options);
WebDriver driver =new RemoteWebDriver(new URL("remote url"), caps);