log.debug("Opening w/username: {}", username);
// Using Apache HttpClient here, as it appears the default wink client does not handle redirects properly, even when configured to do so
HttpClient httpClient = new DefaultHttpClient();
ClientConfig config = new ApacheHttpClientConfig(httpClient);
config.followRedirects(true);
config.handlers(
new LoggingHandler(log, /*debug*/ false),
new BasicAuthSecurityHandler(username, password)
);