public void registerMBeanProxy(Object object, ObjectName objectName) {
    try {
      if (isRegistered(objectName)) {
        return;
      }

      mbeanServer.registerMBean(object, objectName);
    } catch (InstanceAlreadyExistsException instanceAlreadyExistsException) {
      // An InstanceAlreadyExistsException in this context means that the MBean
      // has already been registered, so just log a warning message.
      logRegistrationWarning(objectName, true);
    } catch (NullPointerException | NotCompliantMBeanException
        | MBeanRegistrationException 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.
geode-core/src/main/java/org/apache/geode/management/internal/MBeanJMXAdapter.java