PropertiesManager.getProxyManager().saveProxySettings(proxySettings);
    public static String getWebsiteContent(String website, int port, String pfadAndparameters){        Logger logger = Logger.getLogger(WebsiteContentLoader.class);        StringBuffer htmlContent = new StringBuffer();        try {            String tmpUrl = website + ":" + port + pfadAndparameters;            ProxySettings proxySettings = PropertiesManager.getProxyManager().getProxySettings();            PropertiesManager.getProxyManager().saveProxySettings(proxySettings);            if (proxySettings.isUse()){                System.getProperties().put("proxyHost", proxySettings.getHost());                System.getProperties().put("proxyPort", Integer.toString(proxySettings.getPort()));            }            URL url = new URL(tmpUrl);            URLConnection uc = url.openConnection();            if (proxySettings.isUse()){                uc.setRequestProperty("Proxy-Authorization","Basic " + proxySettings.getUserpass());            }            InputStream content = uc.getInputStream();            BufferedReader in =                    new BufferedReader(new InputStreamReader(content));            String line;            while ((line = in.readLine()) != null) {                htmlContent.append(line);            }            if (proxySettings.isUse()){                System.getProperties().remove("proxyHost");                System.getProperties().remove("proxyPort");            }        }        catch (IOException e) {            if (logger.isEnabledFor(Level.INFO))                logger.info("Zugang zu einer Webseite verweigert. Falsche Proxyeinstellungen?");        }        catch (Exception e){            if (logger.isEnabledFor(Level.ERROR))                logger.error("Unbehandelte Exception", e);        }        return htmlContent.toString();    }