[It’s also unclear from your issue description whether you’re aware of the Hibernate.isInstance() method.