using HibernateUtil.isInstanceOf(...)