protected function getDeviceResolution($name) {
    Assert::keyExists($this->devices, $name, "Device '{$name}' not found.");
    $service = $this->getContainer()->get('drupal.behat.component.resolution');
    $service->parse($this->devices[$name]);
    return $service;
  }