// Register this class to receive Spring container notifications. Specifically, looking
// for an even signaling the container termination. This is done so that we can stop
// the monitor thread
FileSystemXmlApplicationContext context = springDeployer.getSpringContext();
context.addApplicationListener(this);
springDeployer.startListeners();
return springDeployer;
}
/**