code: public void deregister() {
  		if(objectName == null) {
  			return;
  		}
  		
  		try {
  			MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
  			if (mbs.isRegistered(objectName)) {
  				mbs.unregisterMBean(objectName);
  			}
  			objectName = null;
  		} catch (Exception e) {
  			throw new RuntimeException(e);
  		}
  	}
docs: Deregisters this bean on platform MBeanServer.