private static void sendRegisterInterestResponseChunk(final @Nullable Region<?, ?> region,
      final @NotNull Object riKey,
      final @NotNull List<?> list, final boolean lastChunk,
      final @NotNull ServerConnection servConn) throws IOException {
    ChunkedMessage chunkedResponseMsg = servConn.getRegisterInterestResponseMessage();
    chunkedResponseMsg.setNumberOfParts(1);
    chunkedResponseMsg.setLastChunk(lastChunk);
    chunkedResponseMsg.addObjPart(list, false);
    if (logger.isDebugEnabled()) {
      final String regionName = region == null ? " null " : region.getFullPath();
      logger.debug(
          "{}: Sending{}register interest response chunk for region: {} for keys: {} chunk=<{}>",
          servConn.getName(), lastChunk ? " last " : " ", regionName, riKey, chunkedResponseMsg);
    }

    chunkedResponseMsg.sendChunk(servConn);
  }
@param list is a List of entry keys
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/BaseCommand.java