static public ObjectName register(String serviceName, String nameName, Object theMbean) {
        final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
        ObjectName name = getMBeanName(serviceName, nameName);
        try {
            mbs.registerMBean(theMbean, name);
            return name;
        } catch (InstanceAlreadyExistsException ie) {
            LOG.warn(name, ie);
        } catch (Exception e) {
            LOG.warn("Error registering " + name, e);
        }
        return null;
    }