static ManagedBean lookupManagedBean(ManagedResource resource) {
    // find the registry defn for our MBean...
    ManagedBean managed = null;
    if (registry != null) {
      managed = registry.findManagedBean(resource.getManagedResourceType().getClassTypeName());
    } else {
      throw new IllegalArgumentException(
          "ManagedBean is null");
    }

    if (managed == null) {
      throw new IllegalArgumentException(
          "ManagedBean is null");
    }

    // customize the defn...
    managed.setClassName("org.apache.geode.admin.jmx.internal.MX4JModelMBean");

    return managed;
  }
Retrieves the <code>ManagedBean</code> configuration from the Registry for the specified
<code>ManagedResource</code>

@param resource the ManagedResource to find the configuration for
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MBeanUtils.java