*/
protected boolean isValid(JPQLQueryBNF parentQueryBNF, JPQLQueryBNF queryBNF, boolean bypassCompound) {
JPQLQueryBNFValidator validator = buildJPQLQueryBNFValidator(parentQueryBNF);
try {
validator.setBypassCompound(bypassCompound);
validator.validate(queryBNF);
return validator.isValid();
}
finally {
validator.dispose();
}