Automatically saves annotated attributes of an object, using the mechanism of 'SharedPreference'