public void Run() { Log.Info("Started event send"); try { for (var i = 0; i < _numEvents; i++) { var chosen = _choices[i % _choices.Length]; _epService.EPRuntime.SendEvent(new SupportBean(chosen, 1)); var current = Totals.Get(chosen, 0) + 1; Totals.Put(chosen, current); } } catch (Exception ex) { Log.Error("Exception encountered: " + ex.Message, ex); Exception = ex; } Log.Info("Completed event send"); }