remotePassword = pwdLoader.loadPassword(remoteUsername);
if (remotePassword != null) {
try {
URL urlParsed = new URL(url);
String host = urlParsed.getHost();
httpclientImpl.getCredentialsProvider().setCredentials(new AuthScope(host, AuthScope.ANY_PORT),
new UsernamePasswordCredentials(remoteUsername, remotePassword));
isAuthConfigured = true;
} catch (MalformedURLException e) {
// this should never happen due validation before
}