The code that converts the QHash returned by SugarSoap to the payload object will vary depending of the SugarCRM module that has been queried. So this code is moved to different functions that are called by a function pointer established when we select a module.