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