public function replace(UnitOfWork $unitOfWork)
    {
        if (!$this->contains($unitOfWork)) {
            throw new UnitNotPresentException;
        }

        $this->unitOfWorkStore[$unitOfWork->getUniqueId()] = $unitOfWork;
    }