fixed issue with Xml parsing of config file and refactored DocumentManagerFactoryImpl