@Override
  public void cleanupResource() {
    synchronized (managedRegionResourcesMap) {
      Collection<SystemMemberRegionJmxImpl> values = managedRegionResourcesMap.values();

      for (SystemMemberRegionJmxImpl systemMemberRegionJmxImpl : values) {
        MBeanUtils.unregisterMBean(systemMemberRegionJmxImpl);
      }

      managedRegionResourcesMap.clear();
    }

    synchronized (managedCacheServerResourcesMap) {
      Collection<SystemMemberBridgeServerJmxImpl> values = managedCacheServerResourcesMap.values();

      for (SystemMemberBridgeServerJmxImpl SystemMemberBridgeServerJmxImpl : values) {
        MBeanUtils.unregisterMBean(SystemMemberBridgeServerJmxImpl);
      }

      managedCacheServerResourcesMap.clear();
    }
  }
Un-registers all the statistics & cache managed resource created for this member. After
un-registering the resource MBean instances, clears this.memberResources collection.

Creates ConfigurationParameterJmxImpl, StatisticResourceJmxImpl and SystemMemberCacheJmxImpl.
But cleans up only StatisticResourceJmxImpl and SystemMemberCacheJmxImpl which are of type
ManagedResource.
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/SystemMemberCacheJmxImpl.java