Updated to configure USER-AGENT when using apache http client.