public synchronized void registerMonitor(String monitorName, NodeDiscovery discovery) {
monitorName = generateMonitorName(monitorName);
if (!monitors.containsKey(monitorName)) {
NodeDiscoveryMonitorMBean mbean;
try {
ObjectName oName = new ObjectName(monitorName);
mbean = new NodeDiscoveryMonitor(discovery);
monitors.put(monitorName, mbean);
mbs.registerMBean(mbean, oName);