refactoring DocumentManagerFactoryImpl