Description
In OAK-1037 we found that each query execution results in multiple calls to AbstractRoot.getRootState. This might lead to breaking an invariant of the query engine, which probably assumes that the returned node state is the same during the course of a query. To prevent this I suggest to introduce an execution context, which provides a stable state for a query execution.