private void LeavingReqIfContent()
        {
            ReqIfContentImporter reqIfContentImporter = (ReqIfContentImporter)subImporter;

            BuildModelFromImportedReqIfContent(reqIfContentImporter);
            subImporter = null;
        }
        private void BuildModelFromImportedReqIfContent(ReqIfContentImporter reqIfContentImporter)
        {
            if (reqIfContentImporter == null)
                throw new ArgumentNullException("reqIfContentImporter");

            ModelBuilder modelBuilder = CreateModelBuilder(reqIfContentImporter);
            modelBuilder.Build(currentPackage);
        }
        private void BuildModelFromImportedReqIfContent(ReqIfContentImporter reqIfContentImporter)
        {
            if (reqIfContentImporter == null)
            {
                throw new ArgumentNullException("reqIfContentImporter");
            }

            ModelBuilder modelBuilder = CreateModelBuilder(reqIfContentImporter);

            modelBuilder.Build(currentPackage);
        }
        ModelBuilder CreateModelBuilder(ReqIfContentImporter reqIfContentImporter)
        {
            if (reqIfContentImporter == null)
                throw new ArgumentNullException("reqIfContentImporter");

            ModelBuilder modelBuilder = new ModelBuilder();

            modelBuilder.SetSpecifications(reqIfContentImporter.Specifications);
            modelBuilder.SetSpecificationTypes(reqIfContentImporter.SpecificationTypes);
            modelBuilder.SetSpecificationObjects(reqIfContentImporter.SpecificationObjects);
            modelBuilder.SetSpecificationRelations(reqIfContentImporter.SpecificationRelations);

            return modelBuilder;
        }
        ModelBuilder CreateModelBuilder(ReqIfContentImporter reqIfContentImporter)
        {
            if (reqIfContentImporter == null)
            {
                throw new ArgumentNullException("reqIfContentImporter");
            }

            ModelBuilder modelBuilder = new ModelBuilder();

            modelBuilder.SetSpecifications(reqIfContentImporter.Specifications);
            modelBuilder.SetSpecificationTypes(reqIfContentImporter.SpecificationTypes);
            modelBuilder.SetSpecificationObjects(reqIfContentImporter.SpecificationObjects);
            modelBuilder.SetSpecificationRelations(reqIfContentImporter.SpecificationRelations);

            return(modelBuilder);
        }