private function doExitState(Transition $transition)
{
// hook for subclasses to implement
$this->_onExitState($transition);
// an event handler that is possibly defined on the domain model: onExitState
$this->callEventHandler($this->getContext()->getEntity(), 'onExitState', $this->getContext()->getIdentifier(), $transition);
// executes the command and callable associated with the state object
$transition->getStateFrom()->exitAction($this->getContext());
}