public IParagraphUnit CreateParagraph(IEnumerable <ISegmentPair> segmentPairs) { var paragraphUnit = _segmentBuilder.CreateParagraphUnit(null); paragraphUnit.Properties.ParagraphUnitId = new ParagraphUnitId(Guid.NewGuid().ToString()); foreach (var segmentPair in segmentPairs) { paragraphUnit.Source.Add(segmentPair.Source); paragraphUnit.Target.Add(segmentPair.Target); } return(paragraphUnit); }