@Override
  public CacheListener[] getCacheListeners() {
    if (cacheListenerDescs == null || cacheListenerDescs.length == 0) {
      return EMPTY_LISTENERS;
    } else {
      CacheListener[] result = new CacheListener[cacheListenerDescs.length];
      for (int i = 0; i < result.length; i++) {
        result[i] = new RemoteCacheListener(cacheListenerDescs[i]);
      }
      return result;
    }
  }
For use only by DataExternalizable mechanism
geode-core/src/main/java/org/apache/geode/internal/admin/remote/RemoteRegionAttributes.java