writer.writeNormalizedNode(node.getDataAfter().get());
break;
case UNMODIFIED:
- throw new IllegalArgumentException("Unmodified candidate should never be in the payload");
+ out.writeByte(UNMODIFIED);
+ break;
default:
throw new IllegalArgumentException("Unhandled node type " + node.getModificationType());
}