Instead of altering the options internally, copy the options locally and modify the key:

```php
return new NoRecordExists(ArrayUtils::merge($this->options, ['adapter' => $serviceLocator->getServiceLocator()->get($this->options['adapter'])));
```