private static void initializeHystrixSettings() {
   hystrixConfig = ConfigurationManager.getConfigInstance();
   hystrixConfig.setProperty(CORE_SIZE_CONFIG, "20");
   hystrixConfig.setProperty(MAX_QUEUE_SIZE_CONFIG, "20");
   hystrixConfig.setProperty(QUEUE_REJECTION_THRESHOLD_CONFIG, "10");
   hystrixConfig.setProperty(COLLAPSER_TIMER_DELAY, "50");
 }
 public static void addApplicationContext(ConfigurableApplicationContext context) {
   AbstractConfiguration config = ConfigurationManager.getConfigInstance();
   config.clearProperty(APPLICATION_CONTEXT);
   config.setProperty(APPLICATION_CONTEXT, context);
 }