resource-native_example: Normalize on usage of get_opaque_data()