public ContentType Import(XElement node, bool forceUpdate = false) { if (node.Name.LocalName != "DocumentType") { throw new ArgumentException("We only import single DocumentTypes one at a time"); } if (!forceUpdate) { if (!ChangeTracker.ContentTypeChanged(node)) { return(null); } } LogHelper.Debug <uSyncContentType>(">> Changes Detected"); var _packagingService = ApplicationContext.Current.Services.PackagingService; IEnumerable <IContentType> contentTypes = _packagingService.ImportContentTypes(node); if (contentTypes.Count() == 1) { return((ContentType)contentTypes.First()); } return(null); }