refactor(fileconnector): Use new API from DocManager (closes #4696)