public InternalCache getCache() {
    if (internalCache == null) {
      return GemFireCacheImpl.getInstance();
    }
    return internalCache;
  }
@deprecated Please use {@link #getLocatorMembershipListener()} instead.
geode-core/src/main/java/org/apache/geode/distributed/internal/InternalLocator.java