public boolean isRegistered(ObjectName objectName) {

    return mbeanServer.isRegistered(objectName);
  }
Method to unregister all the local GemFire MBeans
geode-core/src/main/java/org/apache/geode/management/internal/MBeanJMXAdapter.java