[FEATURE] Improve ContentRepository to use TCE Main

Improve ContentRepository to use TCEMain to
handle relations properly.

Change-Id: Iccf8ac682a98a82508cf53dd8458782829eb8a84
Releases: 0.2.0
Fixes: #50832