@ Override public MutableCapabilities merge ( Capabilities extraCapabilities ) { if ( extraCapabilities == null ) { return this ; } extraCapabilities . asMap ( ) . forEach ( this :: setCapability ) ; return this ; }
Merge the extra capabilities provided into this DesiredCapabilities instance . If capabilities with the same name exist in this instance they will be overridden by the values from the extraCapabilities object .