`noSQLQuery` should be checked for being null. If so, an NPE will be raised on the next line. The contract mandates an `IllegalArgumentException` "if a query has not been defined with the given name".