public void registerMBeanProxy(Object object,ObjectName objectName){
  try {
    mbeanServer.registerMBean(object,objectName);
  }
 catch (  InstanceAlreadyExistsException e) {
    throw new ManagementException(e);
  }
catch (  MBeanRegistrationException e) {
    throw new ManagementException(e);
  }
catch (  NotCompliantMBeanException e) {
    throw new ManagementException(e);
  }
catch (  NullPointerException e) {
    throw new ManagementException(e);
  }
}

public void registerMBeanProxy ( Object object , ObjectName objectName ) { try { mbeanServer . registerMBean ( object , objectName ) ; } catch ( InstanceAlreadyExistsException e ) { throw new ManagementException ( e ) ; } catch ( MBeanRegistrationException e ) { throw new ManagementException ( e ) ; } catch ( NotCompliantMBeanException e ) { throw new ManagementException ( e ) ; } catch ( NullPointerException e ) { throw new ManagementException ( e ) ; } }
this method will register an mbean in gemfire domain . even if the client provides a domain name it will be ignored and gemfire domain name will be used . this method checks the local filter for registering the mbean . if filtered the mbean wont be registered . although the filter will remember the filtered mbean and register it once the filter is removed .
