* adjust the logic of getByObject().