private static void AddELANInfoToSegment(FdoCache cache, Phrase phrase, ISegment newSegment)
{
if (!String.IsNullOrEmpty(phrase.mediaFile))
{
if(!String.IsNullOrEmpty(phrase.speaker))
{
newSegment.SpeakerRA = FindOrCreateSpeaker(phrase.speaker, cache);
}
newSegment.BeginTimeOffset = phrase.beginTimeOffset;
newSegment.EndTimeOffset = phrase.endTimeOffset;
newSegment.MediaURIRA = cache.ServiceLocator.ObjectRepository.GetObject(new Guid(phrase.mediaFile)) as ICmMediaURI;
}
}