Refactored function parseResponseFromServer
#Refs 20006