Shane: added getFieldsAsMap to ClientResponse.