{
String realm = config.getValueOptional(Constants.CHAPTER_SYSTEM,
mDestination.getName(), "Realm");
String password = config.getValueOptional(Constants.CHAPTER_SYSTEM,
mDestination.getName(), "Password");
HttpState state = client.getState();
state.setCredentials(
new AuthScope(client.getHostConfiguration().getHost(),
client.getHostConfiguration().getPort(), realm),
new UsernamePasswordCredentials(user, password));
HttpClientParams params = new HttpClientParams();
params.setAuthenticationPreemptive(config.getValueAsBooleanOptional(