I won't be against moving the processing code out of the switch/case. For example having a processJSONSuggestions(json) and a processXMSuggestions(xml) or something like that. This method starts to be a little too big.