if (ctx instanceof FileSystemXmlApplicationContext) {
((FileSystemXmlApplicationContext) ctx).destroy();
}
throw e;
}
String containerId = new UIDGenerator().nextId();
if (springContainerRegistry != null) {
// Register each container in a global map. When stopping the
// client, each container in the map will be stopped.
springContainerRegistry.put(containerId, springAdminContext);
}