code: private HttpURLConnection openConnection(ServerConfiguration configuration, URL url) throws IOException {
  		if (configuration.hasProxyConfiguration()) {
  			Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(configuration.getProxyConfiguration().getHost(), configuration.getProxyConfiguration().getPort()));
  			return (HttpURLConnection) url.openConnection(proxy);
  		}
  		else {
  			return (HttpURLConnection) url.openConnection();
  		}
  	}
docs: Open a connection regarding the configuration and the URL
  
  @param configuration The configuration to get the proxy information if necessary
  @param url The URL to open the connection from
  @return The opened connection
  @throws IOException In case of error when opening the connection