public object TransformData(IFreeDocument data) { var doc = MappingDocument(data); var result = func(new List <IFreeDocument> { doc }).FirstOrDefault(); data.Clear(); data.AddRange(result); return(null); }