adding injection of DocumentManagerFactory