Use DatabindContext in instance identifier serialization
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / server / mdsal / streams / dtcl / CreateDataChangeEventSubscriptionRpc.java
index 2fe82719d4a4d710c78000bc25a1dc29b213b40f..49960caa80085089e7b9c734f34acf451ebdcd9b 100644 (file)
@@ -112,7 +112,7 @@ public final class CreateDataChangeEventSubscriptionRpc extends RpcImplementatio
         return streamRegistry.createStream(restconfURI,
             new DataTreeChangeSource(databindProvider, changeService, datastore, path),
             "Events occuring in " + datastore + " datastore under /"
-                + IdentifierCodec.serialize(path, input.currentContext().modelContext()))
+                + IdentifierCodec.serialize(path, input.currentContext()))
             .transform(stream -> input.newOperationOutput(Builders.containerBuilder()
                 .withNodeIdentifier(OUTPUT_NODEID)
                 .withChild(ImmutableNodes.leafNode(STREAM_NAME_NODEID, stream.name()))