code: public OperaSettings merge(Capabilities capabilities) {
      for (Map.Entry<String, ?> capability : capabilities.asMap().entrySet()) {
        Capability capabilityReference = Capability.findCapability(capability.getKey());
  
        if (options.containsKey(capabilityReference)) {
          options.get(capabilityReference)
              .setValue(capabilityReference.sanitize(capability.getValue()));
          continue;
        }
  
        // Store the rest as surplus capabilities
        surplusCapabilities.setCapability(capability.getKey(), capability.getValue());
      }
  
      initializeLogging();
      return this;
    }
docs: Merge a set of capabilities in to these settings.  The settings corresponding to the
  <code>opera.</code> capability prefix will be updated, while surplus/unknown capabilities will
  be stored.  They can later be retrieved using the {@link #toCapabilities()} method on this
  object.
  
  @param capabilities capabilities to merge into these settings
  @return reference to self