added mergePayload method to RestAdapter