[Hibernate-JIRA] (HV-698) Don't support unwrapping to internal implementation classes