AI-512 : Criteria.union() support for class instance loading + NPE fix