public void unregisterMBean(ObjectName objectName){
  try {
    if (!isRegistered(objectName)) {
      return;
    }
    mbeanServer.unregisterMBean(objectName);
    if (localGemFireMBean.get(objectName) != null) {
      localGemFireMBean.remove(objectName);
    }
  }
 catch (  NullPointerException e) {
    throw new ManagementException(e);
  }
catch (  InstanceNotFoundException e) {
    throw new ManagementException(e);
  }
catch (  MBeanRegistrationException e) {
    throw new ManagementException(e);
  }
}

public void unregisterMBean ( ObjectName objectName ) { try { if ( ! isRegistered ( objectName ) ) { return ; } mbeanServer . unregisterMBean ( objectName ) ; if ( localGemFireMBean . get ( objectName ) != null ) { localGemFireMBean . remove ( objectName ) ; } } catch ( NullPointerException e ) { throw new ManagementException ( e ) ; } catch ( InstanceNotFoundException e ) { throw new ManagementException ( e ) ; } catch ( MBeanRegistrationException e ) { throw new ManagementException ( e ) ; } }
this method will unregister the mbean from gemfire domain
