if (containerManagers != null) {
for (int i = 0; i < containerManagers.length; i++) {
final MessageContainerManager containerManager = containerManagers[i];
template.run(new Callback() {
public void execute() throws Throwable {
containerManager.stop();
}
});
}
}
if (transactionManager != null) {