begin docManager (refs #2785)
continue docManager (refs #2785)
adapt test tu use getDocument instead of new_doc (refs #2785)
refactor DocManager (refs #2785)
adapt code for new DocManager (refs #2785)