CMS-3952 Wrong behavior: when new child added to expanded content, parent content becomes collapsed.
Refactored methods to use ContentId as type instead of string.