return _client;
if (useAuthentication()) { client.getState().setCredentials( _realm, _host, new UsernamePasswordCredentials(_userName, _passwd) ); } return client;
    private HttpClient getClient() {        if(_client == null){        	_client = new HttpClient();	        if (useProxy()) {	            _client.getHostConfiguration().setProxy(_proxyHost, _proxyPort);	            if (useProxyAuthentication()) {	                _client.getState().setProxyCredentials(_proxyRealm, _proxyHost,	                    new UsernamePasswordCredentials(_proxyUserName, _proxyPasswd));	            }	        }	        if (useAuthentication()) {		        _client.getState().setCredentials(		            _realm,		            _host,		            new UsernamePasswordCredentials(_userName, _passwd)		        );	        }        }        return _client;    }