+ @Override
+ public DataTreeSnapshotCursor createCursor(final YangInstanceIdentifier path) {
+ final Optional<NormalizedNode<?, ?>> maybeRoot = NormalizedNodes.findNode(rootNode.getData(), path);
+ if (!maybeRoot.isPresent()) {
+ return null;
+ }
+
+ final NormalizedNode<?, ?> root = maybeRoot.get();
+ Preconditions.checkArgument(root instanceof NormalizedNodeContainer, "Child %s is not a container", path);
+ return openCursor(new InMemoryDataTreeSnapshotCursor(this, path, (NormalizedNodeContainer<?, ?, ?>)root));
+ }
+