CloudProxySettings () { final HttpConfigurable httpConfigurable = HttpConfigurable.getInstance(); return new CloudProxySettings() { @Override public boolean useHttpProxy() { return httpConfigurable.USE_HTTP_PROXY; } @Override public String getHost() { return httpConfigurable.PROXY_HOST; } @Override public int getPort() { return httpConfigurable.PROXY_PORT; } @Override public boolean useAuthentication() { return httpConfigurable.PROXY_AUTHENTICATION; } @Override public String getLogin() { return httpConfigurable.getProxyLogin(); } @Override public String getPassword() { return httpConfigurable.getPlainProxyPassword(); } }; }