- // Note: we don't want to process DELETE modifications but we don't need to explicitly check the
- // ModificationType because dataAfter will not be present. Also dataAfter *should* always contain a
- // MapEntryNode but we verify anyway.
- if (dataAfter.isPresent()) {
- final NormalizedNode<?, ?> normalizedNode = dataAfter.get();
- Verify.verify(normalizedNode instanceof DataContainerNode, "Expected type DataContainerNode, actual was %s",
- normalizedNode.getClass());
- DataContainerNode<?> entryNode = (DataContainerNode<?>) normalizedNode;
- final Optional<DataContainerChild<? extends PathArgument, ?>> possibleYear =
- entryNode.getChild(YEAR_NODE_ID);
- if (possibleYear.isPresent()) {
- final Number year = (Number) possibleYear.get().getValue();
+ // Note: we don't want to process DELETE modifications but we don't need to explicitly check the
+ // ModificationType because dataAfter will not be present. Also dataAfter *should* always contain a
+ // MapEntryNode but we verify anyway.
+ if (dataAfter.isPresent()) {
+ final NormalizedNode<?, ?> normalizedNode = dataAfter.get();
+ Verify.verify(normalizedNode instanceof DataContainerNode,
+ "Expected type DataContainerNode, actual was %s", normalizedNode.getClass());
+ DataContainerNode<?> entryNode = (DataContainerNode<?>) normalizedNode;
+ final Optional<DataContainerChild<? extends PathArgument, ?>> possibleYear =
+ entryNode.getChild(YEAR_NODE_ID);
+ if (possibleYear.isPresent()) {
+ final Number year = (Number) possibleYear.get().getValue();