}
}
private Object getReferencedEntity(int propertyIndex) {
GridType propertyType = gridPropertyTypes[propertyIndex];
Serializable id = (Serializable) propertyType.hydrate(
resultset, persister.getPropertyColumnNames( propertyIndex ), session, null
);
if ( id != null ) {
EntityPersister hostingEntityPersister = session.getFactory().getEntityPersister(