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();
nioLogger.log(NioLogger.LoggingLevel.TRANSPORT, sessionId, "Found heap termination in delta %s for heapId = %s", currentDelta.getUpdateId(), heapId);
terminateSubscriptions(sessionId, heapId, Subscription.CloseReason.REQUESTED_BY_PUBLISHER);