Making ObjectAccessor public and generic