Set etags property on ret before data so format matches retrieveRecord().