[ODM] Change API for getobj