private void initiateLocalAbortForTest(final DistributionManager dm) {
      if (!dm.getSystem().isDisconnecting()) {
        if (logger.isDebugEnabled()) {
          logger.debug(
              "abortTest: Disconnecting from distributed system and sending null chunk to abort");
        }
        // can't disconnect the distributed system in a thread owned by the ds,
        // so start a new thread to do the work
        Thread disconnectThread =
            new LoggingThread("InitialImageOperation abortTest Thread",
                () -> dm.getSystem().disconnect());
        disconnectThread.start();
      } // !isDisconnecting
      // ...end of abortTest code
    }
Serialize the entries into byte[] chunks, calling proc for each one. proc args: the byte[]
chunk and an int indicating whether it is the last chunk (positive means last chunk, zero
otherwise). The return value of proc indicates whether to continue to the next chunk (true)
or abort (false).

@param versionVector requester's region version vector
@param unfinishedKeys keys of unfinished operation (persistent region only)
@return true if finished all chunks, false if stopped early
geode-core/src/main/java/org/apache/geode/internal/cache/InitialImageOperation.java