Improved newly added RestClientService protected methods.

Change-Id: If3f023a1a3d3ac87f8329b70e1349b176c55d4e8