Separate out more constructor callers
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / rest / impl / JsonNormalizedNodeBodyReader.java
index 17f7c19af2ce28d41ecb31d6d504698e2de7dee3..a3865540122ea4c4e42b085f8eb910f7f0fffb0b 100644 (file)
@@ -153,13 +153,7 @@ public class JsonNormalizedNodeBodyReader
             }
         }
 
-        final YangInstanceIdentifier fullIIToData = YangInstanceIdentifier.create(Iterables.concat(
-                path.getInstanceIdentifier().getPathArguments(), iiToDataList));
-
-        newIIContext = new InstanceIdentifierContext(fullIIToData, path.getSchemaNode(), path.getMountPoint(),
-                path.getSchemaContext());
-
-        return new NormalizedNodeContext(newIIContext, result);
+        return new NormalizedNodeContext(path.withConcatenatedArgs(iiToDataList), result);
     }
 
     private static void propagateExceptionAs(final Exception exception) throws RestconfDocumentedException {