public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");

		if (context.containsBean("quarantinedDataSource")) {
			LOG.info("Using quarantinedDataSource");
		} else {
			LOG.info("Using normal dataSource");
		}

		EventService service = context.getBean(EventService.class);

		while (true) {
			service.startNextEvent();
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				break;
			}
		}
	}