return nil, err
}
newRunMutableState = NewMutableState(
b.shard,
b.shard.GetEventsCache(),
b.logger,
b.mutableState.GetNamespaceEntry(),
newExecution.WorkflowId,
newExecution.RunId,
timestamp.TimeValue(newRunHistory[0].GetEventTime()),
)
}
newRunStateBuilder := NewMutableStateRebuilder(b.shard, b.logger, newRunMutableState)