@Override
public void compare(final NodeState before, final NodeState after,
final NodeStateDiff diff) {
// OAK-46: Efficient diffing of large child node lists
Node beforeNode = ((StoredNodeAsState) before).unwrap();
Node afterNode = ((StoredNodeAsState) after).unwrap();
beforeNode.diff(afterNode, new NodeDiffHandler() {
@Override
public void propAdded(String propName, String value) {
diff.propertyAdded(after.getProperty(propName));