refactor(docmanager): replace deprecated new_doc, getTdoc, - part 8 - (fixes #2785)