InvalidQueryException - if the query node tree cannot be converted
into a String representation of the given language. This might be due to
syntax restrictions of the given language. This exception is also thrown
if language is not one of the supported query languages
returned by the QueryManager.