if( !anyConnected(connections) && allControlable(connections))
menu.add(new MBeanServerConnectAction(connections));
else if( allControlable(connections))
menu.add(new MBeanServerDisconnectAction(connections));
menu.add(new DeleteConnectionAction(connections));
}
// Finish up
menu.add(new Separator());
menu.add(newConnectionAction);