Add a method to get refs by object Id