public void Initialize() { foreach (var item in _configurations.Items) { var configuration = item; _factory.Configure(configure => configure.For <IParser>().Use(new Parser(configuration)).Named(configuration.Instance)); } }