public IContainer MapFrom(IModel model, IBuildConfiguration buildConfiguration) { var moleculeNames = buildConfiguration.AllPresentFloatingMoleculeNames(); var neighborhoodsParentContainer = _objectBaseFactory.Create <IContainer>() .WithMode(ContainerMode.Logical) .WithName(Constants.NEIGHBORHOODS); var startValuesForFloatingMolecules = presentMoleculesCachedByContainerPath(moleculeNames, buildConfiguration); var moleculeNamesCopyProperties = buildConfiguration.AllPresentXenobioticFloatingMoleculeNames(); buildConfiguration.SpatialStructure.Neighborhoods.Each(nb => neighborhoodsParentContainer.Add(_neighborhoodMapper.MapFrom(nb, model, buildConfiguration, moleculeNamesFor(nb, startValuesForFloatingMolecules), moleculeNamesCopyProperties))); return(neighborhoodsParentContainer); }