}
}
if (this.solraccount.length() > 0) {
final HttpClient client = new HttpClient();
final AuthScope scope = new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT, null, null);
client.getState().setCredentials(scope,new UsernamePasswordCredentials(this.solraccount, this.solrpw));
final List<String> authPrefs = new ArrayList<String>(2);
authPrefs.add(AuthPolicy.DIGEST);
authPrefs.add(AuthPolicy.BASIC);
// This will exclude the NTLM authentication scheme
client.getParams().setParameter(AuthPolicy.AUTH_SCHEME_PRIORITY, authPrefs);