internal static BatchInfo GetSafeBatchInfo(string batchID) { if (string.IsNullOrEmpty(batchID)) { return(null); } BatchInfo batch; if (InputMart.Instance.BatchInfo.TryGetValue(batchID, out batch) == false) { InputMart.Instance.BatchInfo.Add(batchID, batch = CreateHelper.CreateBatchInfo(batchID)); } return(batch); }