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