Refactored getResponse() into a helper-method and updated to call IConnection.