public ImportedServicesInstance NewInstance(ModuleInstance module)
        {
            this.serviceReferences = new List <ImportedServiceReferenceInstance>();
            foreach (ImportedServiceModel serviceModel in this.importedServiceModels)
            {
                var serviceReferenceInstance = new ImportedServiceReferenceInstance(serviceModel, module);
                this.serviceReferences.Add(serviceReferenceInstance);
            }

            return(new ImportedServicesInstance(this, this.serviceReferences));
        }
        public ImportedServicesInstance NewInstance(ModuleInstance module)
        {
            this.serviceReferences = new List<ImportedServiceReferenceInstance>();
            foreach (ImportedServiceModel serviceModel in this.importedServiceModels)
            {
                var serviceReferenceInstance = new ImportedServiceReferenceInstance(serviceModel, module);
                this.serviceReferences.Add(serviceReferenceInstance);
            }

            return new ImportedServicesInstance(this, this.serviceReferences);
        }