try {
@SuppressWarnings("unused")
final ApplicationContext ctx = new FileSystemXmlApplicationContext(
"file:" + args[0]);
FileLogger logger = (FileLogger) ctx.getBean("statLogger");
for (int i = 0; i < 5; i++) {
logger.log();
Thread.sleep(1000);
}
} catch (BeanDefinitionStoreException x) {
log.error(x);
throw new IllegalArgumentException(message, x);