getRef is obsolete method