refactor(docmanager): replace deprecated new_doc, getTdoc, -final parts - (fixes #2785)