internal StorageActionsAccessor GetCurrentBatch() { var batch = current.Value; if (batch == null) throw new InvalidOperationException("Batch was not started, you are not supposed to call this method"); return batch; } }