MDL-44316 core_tag: changed the API to accept a contextid and component