if (environment == null) {
ConfigurationManager.getConfigInstance().setProperty(
ARCHAIUS_DEPLOYMENT_ENVIRONMENT, TEST);
logger.info("Eureka environment value eureka.environment is not set, defaulting to test");
}
EurekaInstanceConfig config;
if (CLOUD.equals(ConfigurationManager.getDeploymentContext()
.getDeploymentDatacenter())) {
config = new CloudInstanceConfig();
} else {
config = new MyDataCenterInstanceConfig();