Description
Currently, the query engine directly reads nodetype information from the relevant nodes from /jcr:system/jcr:nodeTypes. This strongly couples an implementation detail (the NodeState API) with the query engine.
Instead, nodetype information should be encapsulated. That way, the parser can be used even if no repository with nodes states is available.