MD-SAL has context where it has a list of DataTreeCandidate objects which form a set of changes, but it really needs to forward only the effective delta, i.e. a single DataTreeCandidate.
Add DataTreeCandidates.aggregate(List<DataTreeCandidate> candidates) method, which will create a new DataTreeCandidate node, having following properties:
- dataBefore matches the first candidate's dataBefore
- dataAfter matches the last candidate's dataAfter
- reported change tree is an accurate aggregate of the changes between the before and after state