Small refactoring. Building the document map is now done by the Job
itself