Creates a new JCR Query by specifying the query statement itself, the language in which the query is stated, the
QueryCommand representation and, optionally, the node from which the query was loaded. The language must be a
string from among those returned by QueryManager#getSupportedQueryLanguages().
context - the context that was used to create this query and that will be used to execute this query; may not be null
statement - the original statement as supplied by the client; may not be null
language - the language obtained from the QueryParser; may not be null
storedAtPath - the path at which this query was stored, or null if this is not a stored query