Code for content_metadata version 3.