public <T> T findMBeanByName(ObjectName objectName, Class<T> interfaceClass) {

    Object mbeanInstance = localGemFireMBean.get(objectName);
    if (mbeanInstance != null) {
      return interfaceClass.cast(mbeanInstance);
    } else {
      return null;
    }
  }
Finds the MBean instance by {@link javax.management.ObjectName}

@return instance of MBean
geode-core/src/main/java/org/apache/geode/management/internal/MBeanJMXAdapter.java