rest client using apache httpcomponents example