if (setupTasks != null) {
Collections.reverse(setupTasks);
MBeanServerConnection server = mbeanServerInstance.get();
Map<String, String> props = container.getContainerConfiguration().getContainerProperties();
Context context = new SetupContext(server, props);
for (ContainerSetupTask task : setupTasks) {
task.tearDown(context);
}
}
}