public function getObjectStateService()
{
if ($this->objectStateService !== null) {
return $this->objectStateService;
}
$this->objectStateService = new ObjectStateService($this->repository->getObjectStateService(), $this->signalDispatcher);
return $this->objectStateService;
}