public static WorkflowItemEvent CreateWorkflowItemEventFor(this HistoryEvent historyEvent, IEnumerable <HistoryEvent> allHistoryEvents)
        {
            var itemEvent = historyEvent.ActivityEvent(allHistoryEvents);

            itemEvent = itemEvent ?? historyEvent.TimerEvent(allHistoryEvents);
            itemEvent = itemEvent ?? historyEvent.ChildWorkflowEvent(allHistoryEvents);
            itemEvent = itemEvent ?? historyEvent.LambdaEvent(allHistoryEvents);
            return(itemEvent);
        }