public function prePersist(EventArgs $eventArgs)
    {
        if (method_exists($eventArgs, 'getEntity')) {
            $this->_triggerEvent(Events::prePersist, $eventArgs->getEntity(), $eventArgs);
        }
    }