private Environment GetEnvironment(string environmentName) { Environment environment = null; if (_Cache.Exists <Environment>(environmentName)) { environment = _Cache.Get <Environment>(environmentName); } else { environment = _BuilderFactory .EnvironmentBuilder() .WithName(environmentName) .Build(); _Cache.Add(environmentName, environment); } return(environment); }