added getByObjectId method