public static void sendNewRegisterInterestResponseChunk(final @Nullable LocalRegion region,
      final @NotNull Object riKey,
      final @NotNull VersionedObjectList list, final boolean lastChunk,
      final @NotNull ServerConnection servConn)
      throws IOException {
    final 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);
  }
Copied from Get70.getValueAndIsObject(), except a minor change. (Make the method static instead
of copying it here?)
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/BaseCommand.java