Source:
<code>public long getConflictSetAndCommit(ConflictSetInfo conflictSet) { if (TransactionalContext.isInNestedTransaction()) { getParentContext().addTransaction(this); commitAddress = AbstractTransactionalContext.FOLDED_ADDRESS; log.trace("Commit[{}] Folded into {}", this, getParentContext()); return commitAddress; } if (getWriteSetInfo().getWriteSet().getEntryMap().isEmpty()) { log.trace("Commit[{}] Read-only commit (no write)", this); return NOWRITE_ADDRESS; } Set<UUID> affectedStreamsIds = new HashSet<>(getWriteSetInfo() .getWriteSet().getEntryMap().keySet()); <START> Set<UUID> streamTags = new HashSet<>(); affectedStreamsIds.forEach( s -> { if (streamToProxyMap.containsKey(s)) { streamTags.addAll(streamToProxyMap.get(s).getStreamTags()); } }); affectedStreamsIds.addAll(streamTags); END> if (this.transaction.isLoggingEnabled()) { affectedStreamsIds.add(TRANSACTION_STREAM_ID); } UUID[] affectedStreams = affectedStreamsIds.toArray(new UUID[affectedStreamsIds.size()]); long address = -1L; final TxResolutionInfo txInfo = new TxResolutionInfo(getTransactionID(), getSnapshotTimestamp(), conflictSet.getHashedConflictSet(), getWriteSetInfo().getHashedConflictSet()); try { address = this.transaction.runtime.getStreamsView() .append( collectWriteSetEntries(), txInfo, affectedStreams ); } catch (AppendException oe) { throw new TransactionAbortedException(txInfo, AbortCause.OVERWRITE, oe, this); } log.trace("Commit[{}] Acquire address {}", this, address); super.commitTransaction(); commitAddress = address; log.trace("Commit[{}] Written to {}", this, address); return address; }</code><technical_language>do this java Set<UUID> affectedStreamsIds = new HashSet<>(getWriteSetInfo().getWriteSet().getEntryMap().keySet()); modifiedProxies.stream().forEach(proxy -> affectedStreamsIds.add(proxy.getStreamTags()));</technical_language>

Target:
public long getConflictSetAndCommit(ConflictSetInfo conflictSet) { if (TransactionalContext.isInNestedTransaction()) { getParentContext().addTransaction(this); commitAddress = AbstractTransactionalContext.FOLDED_ADDRESS; log.trace("Commit[{}] Folded into {}", this, getParentContext()); return commitAddress; } if (getWriteSetInfo().getWriteSet().getEntryMap().isEmpty()) { log.trace("Commit[{}] Read-only commit (no write)", this); return NOWRITE_ADDRESS; } Set<UUID> affectedStreamsIds = new HashSet<>(getWriteSetInfo() .getWriteSet().getEntryMap().keySet()); modifiedProxies.forEach( p -> { affectedStreamsIds.addAll(p.getStreamTags()); }); UUID[] affectedStreams = affectedStreamsIds.toArray(new UUID[affectedStreamsIds.size()]); long address = -1L; final TxResolutionInfo txInfo = new TxResolutionInfo(getTrFansactionID(), getSnapshotTimestamp(), conflictSet.getHashedConflictSet(), getWriteSetInfo().getHashedConflictSet()); try { address = this.transaction.runtime.getStreamsView() .append( collectWriteSetEntries(), txInfo, affectedStreams ); } catch (AppendException oe) { throw new TransactionAbortedException(txInfo, AbortCause.OVERWRITE, oe, this); } log.trace("Commit[{}] Acquire address {}", this, address); super.commitTransaction(); commitAddress = address; log.trace("Commit[{}] Written to {}", this, address); return address; }