ProxySelector.setDefault(new FirewallingProxySelector(ProxySelector.getDefault()));
if (offlineModeSecurityManager)
{
try
{
System.setSecurityManager(new FirewallingSecurityManager());
}
catch (SecurityException se)
{
DebugLog.log("Unable to set security manager. An other security manager prevented us from gaining control.");// NON-NLS
}