Ported TransactionOutputChanges.
passed mvn test.