code: private void rebuildJmx()
      {
          m_mbeanServer = ManagementFactory.getPlatformMBeanServer();
  
          try
          {
              buildMBeanInfo();
  
              //
              //  Remove and reinstall from the MBean registry if it already exists.  Also
              //  remove previous instances.
              //
              ObjectName newName = getJMXName();
  
              if( m_mbeanServer.isRegistered(newName) )
              {
                  log.debug("Removing already registered bean {}", newName);
                  m_mbeanServer.unregisterMBean(newName);
              }
  
              if( m_jmxName != null && !newName.equals(m_jmxName) && m_mbeanServer.isRegistered(m_jmxName) )
              {
                  log.debug("Removing the old bean {}", m_jmxName);
                  m_mbeanServer.unregisterMBean(m_jmxName);
              }
  
              m_jmxName = getJMXName();
  
              if( m_beanInfo != null )
              {
                  m_mbeanServer.registerMBean( this, m_jmxName );
  
                  log.debug("Registered new JMX bean '{}'", m_jmxName);
              }
          }
          catch (InstanceAlreadyExistsException e)
          {
              log.debug("JMX bean '{}' already registered, continuing...");
          }
          catch (Exception e)
          {
              throw new ConfigurationException(e);
          }
      }
docs: Rebuild the JMX bean.