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