[hibernate-issues] [JIRA] (HHH-8477) Use javax.persistence.Query#unwrap to implement addNamedQuery, rather than direct type checking