private void SendStateChangedEvent() { StateChanged stateChangedEvent = StateChanged.Create(entity); Type currentStateType = currentState.GetType(); stateChangedEvent.Name = currentStateType.Name; stateChangedEvent.Send(); }