- if (originalChild.getPath().equals(resultChild.getPath())
- && resultChild.getType().equals(resultChild.getType())) {
+
+ YangInstanceIdentifier.PathArgument result = NormalizedNodeSerializer.deSerialize(
+ containerResult.getNormalizedNode(),
+ resultChild.getPathArgument());
+
+ YangInstanceIdentifier.PathArgument original = NormalizedNodeSerializer.deSerialize(
+ container.getNormalizedNode(),
+ originalChild.getPathArgument());
+
+ if (original.equals(result)
+ && resultChild.getIntType() == resultChild.getIntType()) {