}
if (hasSuppliedCredentials()) {
LOG.info("Setting password for username: " + fUserName);
// credentials provider has already been set as DefaultCredentialsProvider
// in Setup (may already contain credentials for proxy)
final DefaultCredentialsProvider credentialsProvider =
(DefaultCredentialsProvider) context.getWebClient().getCredentialsProvider();
credentialsProvider.addCredentials(fUserName, fPassword);
context.setSavedUserName(fUserName);
context.setSavedPassword(fPassword);
}
final Configuration config = context.getConfig();