- final SchemaInferenceStack stack;
- final List<QName> qnames;
- if (nestedNotificationInfo != null) {
- qnames = nestedNotificationInfo.domDataTreeIdentifier.getRootIdentifier().getPathArguments().stream()
- .filter(arg -> !(arg instanceof NodeIdentifierWithPredicates))
- .filter(arg -> !(arg instanceof AugmentationIdentifier))
- .map(PathArgument::getNodeType)
- .map(qName -> QName.create(mostRecentNotification.getQName(), qName.getLocalName()))
- .collect(Collectors.toList());
- stack = SchemaInferenceStack.of(mountContext.getEffectiveModelContext(), Absolute.of(qnames));
- } else {
- stack = SchemaInferenceStack.of(mountContext.getEffectiveModelContext(),
- Absolute.of(mostRecentNotification.getQName()));
- }
-