private static Zone getZone() {
        if (!isConfigServer()) {
            return Zone.defaultZone();
        }
        ConfigEnvironmentVariables variables = new ConfigEnvironmentVariables();
        if (!variables.hostedVespa().orElse(false)) {
            return Zone.defaultZone();
        }
        RegionName region = variables.region().map(RegionName::from).orElseGet(RegionName::defaultName);
        Environment environment = variables.environment().map(Environment::from).orElseGet(Environment::defaultEnvironment);
        SystemName system = variables.system().map(SystemName::from).orElseGet(SystemName::defaultSystem);
        return new Zone(system, environment, region);
    }
@author Tony Vaagenes
@author gjoranv
@author ollivir
standalone-container/src/main/java/com/yahoo/container/standalone/StandaloneContainerApplication.java