* @param identifier The JPQL identifier to validate
* @return <code>true</code> if the given identifier is part of the current JPA version or was
* defined in previous release; <code>false</code> otherwise
*/
protected boolean isValidVersion(String identifier) {
JPAVersion identifierVersion = queryContext.getExpressionRegistry().getIdentifierVersion(identifier);
return queryContext.getJPAVersion().isNewerThanOrEqual(identifierVersion);
}