replace call to obj.getClass() by getObjectClass(obj) in HbStore