for (ViewMBean viewMBean : viewMamanagementBeans) {
managementContext.manage(viewMBean, name);
}
//Add the the management view objects to the Closer, so that they are unregistered on close.
closer.addToClose(new Closeable() {
@Override
public void close() throws IOException {
for (ViewMBean viewMBean : viewMamanagementBeans) {
managementContext.unmanage(viewMBean, name);
}