private static void appendInterestResponseKey(final @NotNull LocalRegion region,
      final @NotNull Object riKey, final @NotNull Object entryKey,
      final @NotNull List<Object> list, final @NotNull ServerConnection servConn)
      throws IOException {
    list.add(entryKey);
    if (logger.isDebugEnabled()) {
      logger.debug("{}: appendInterestResponseKey <{}>; list size was {}; region: {}",
          servConn.getName(), entryKey, list.size(), region.getFullPath());
    }
    if (list.size() == MAXIMUM_CHUNK_SIZE) {
      // Send the chunk and clear the list
      sendRegisterInterestResponseChunk(region, riKey, list, false, servConn);
      list.clear();
    }
  }
Append an interest response

@param region the region (for debugging)
@param riKey the registerInterest "key" (what the client is interested in)
@param entryKey key we're responding to
@param list list to append to
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/BaseCommand.java