refactored the configuration export method, it is now using
CommandFactory.