Only reason I didn't do any merging is because you'd be most likely only setting the meta data once since you need the resource instance to do so.