// Now process the binary changes ...
for (Change change : changeSet) {
// Look at property added/removed/changed events, and node add/removed/moved/renamed/reordered events ...
if (change instanceof BinaryValueUnused) {
BinaryValueUnused unused = (BinaryValueUnused)change;
BinaryKey key = unused.getKey();
if (usedBinaryKeys.contains(key)) {
// This change set had marked it as used, but now is unused again; removed it from the used.
usedBinaryKeys.remove(key);
break;
}
unusedBinaryKeys.add(key);
}
if (change instanceof BinaryValueUsed) {
BinaryValueUsed unused = (BinaryValueUsed)change;
BinaryKey key = unused.getKey();
if (unusedBinaryKeys.contains(key)) {
// This change set had marked it as used, but now is unused again; removed it from the used.
unusedBinaryKeys.remove(key);
break;
}