public void InitializeForOpen()
        {
            // initialize if needed
            if (InnerItem == _originalItem)
            {
                IsInitializing = true;

                DetachEventListeners();


                // Load complete item here
                _originalItem = LoadItem(_originalItem.ImportJobId);
                InnerItem     = _originalItem.DeepClone(_entityFactory as IKnownSerializationTypes);
                // current workaround for repository crash
                //ItemRepository = Container.Resolve<IImportRepository>();
                _itemRepository.Attach(InnerItem);

                InitializePropertiesForViewing();

                InnerItem.PropertyChanged += CurrentItem_PropertyChanged;

                //OnUIThread(() =>
                //{

                //});
            }
        }
        public void InitializeForOpen()
        {
            // initialize if needed
            if (InnerItem == _originalItem)
            {
                IsInitializing = true;

                DetachEventListeners();


                // Load complete item here
                _originalItem = LoadItem(_originalItem.ImportJobId);
                InnerItem     = _originalItem.DeepClone(_entityFactory as IKnownSerializationTypes);
                // current workaround for repository crash
                //ItemRepository = Container.Resolve<IImportRepository>();
                _itemRepository.Attach(InnerItem);

                InitializePropertiesForViewing();

                if (InnerItem.EntityImporter != null)
                {
                    SelectedEntityImporter = AllAvailableEntityImporters.First(x => x.Name == InnerItem.EntityImporter);
                }
                else
                {
                    SelectedEntityImporter = AllAvailableEntityImporters.First();
                }

                CsvFileColumns = GetCsvColumns(InnerItem.TemplateId);

                InnerItem.PropertyChanged += CurrentItem_PropertyChanged;

                //OnUIThread(() =>
                //{

                //});
            }
        }