private function assertValidAttribute($attribute)
    {
        if ( ! isset($this->documentChangeSet[$attribute])) {
            throw new \InvalidArgumentException(sprintf(
                'Attribute "%s" is not a valid attribute of the document "%s" in PreUpdateEventArgs.',
                $attribute,
                get_class($this->getDocument())
            ));
        }
    }