private function firePendingEvents()
{
if (!empty($this->_pendingEvents)) {
foreach ($this->_pendingEvents as $event) {
$this->owner->trigger($event->name, $event);
}
$this->_pendingEvents = [];
if ($this->getStatusAccessor() != null) {
$this->_statusAccessor->commitStatus($this->owner);
}
}
}