MBeanServer server = MBeanServerFactory.createMBeanServer();
// multicast detector will detect new network registries that come online
MulticastDetector detector = new MulticastDetector();
services.setup(server, detector, null, null, null, true, false);
detector.start();
}
else if (services.getDetector() == null)
{
// the internal services singleton is already setup, make sure it has a detector because we need it
MulticastDetector detector = new MulticastDetector();