protected function setValueAndCheckIfModified($propertyName, $value)
    {
        if ($this->{$propertyName} !== $value) {
            $this->isModified = true;
        }

        $this->{$propertyName} = $value;
    }