Refactor NormalizedNodePayload
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / rests / services / impl / RestconfStreamsSubscriptionServiceImpl.java
index c4162650bd869483b8a61e9775e447d99fd856a3..ce5643b3bd1bed50e62ec415235a3e48d3673566 100644 (file)
@@ -73,7 +73,7 @@ public class RestconfStreamsSubscriptionServiceImpl implements RestconfStreamsSu
 
         return Response.ok()
             .location(location)
-            .entity(NormalizedNodePayload.of(
+            .entity(new NormalizedNodePayload(
                 Inference.ofDataTreePath(handlersHolder.getDatabindProvider().currentContext().modelContext(),
                     Notifi.QNAME, LOCATION_QNAME),
                 ImmutableNodes.leafNode(LOCATION_NODEID, location.toString())))