if (model.shouldSaveAuthInfo()) {
Platform.addAuthorizationInfo(serverUrl, "", "basic", info); //$NON-NLS-1$ //$NON-NLS-2$
} else {
IWebDavClient client = WebDavClientFactory.createClient(serverUrl);
WebDavServerCache.cacheWebDavClient(serverUrl.toString(), client);
WebDavSessionAuthenticator authen = new WebDavSessionAuthenticator();
authen.addAuthenticationInfo(serverUrl, "", "basic", info); //$NON-NLS-1$ //$NON-NLS-2$
client.setSessionAuthenticator(authen);
}
}