}
while (delta != null) {
// take a copy now, so we can use it in the initial update processing later...
HeapDelta currentDelta = delta;
nioLogger.log(NioLogger.LoggingLevel.TRANSPORT, sessionId, "Applying delta %s for heapId = %s", currentDelta.getUpdateId(), heapId);
if (currentDelta.containsHeapTermination()) {
heapSubMutationLock.lock();
try {
currentDelta.applyTo(state.getHeap().asListener());
state.popNextDelta();