- QName _nodeType = element.getNodeType();
- final DataSchemaNode potentialNode = ControllerContext.childByQName(node, _nodeType);
- if (!ControllerContext.isListOrContainer(potentialNode)) {
- return null;
+ if (!(element instanceof AugmentationIdentifier)) {
+ final QName _nodeType = element.getNodeType();
+ final DataSchemaNode potentialNode = ControllerContext.childByQName(node, _nodeType);
+ if (!(element instanceof NodeIdentifier && potentialNode instanceof ListSchemaNode)) {
+ if (!ControllerContext.isListOrContainer(potentialNode)) {
+ return null;
+ }
+ builder.append(convertToRestconfIdentifier(element, (DataNodeContainer) potentialNode, mount));
+ node = (DataNodeContainer) potentialNode;
+ }