code: private HttpURLConnection openConnection(URL url) throws IOException {
                HttpURLConnection connection = createConnection(url);
                connection.setUseCaches(true);
                connection.setDoInput(true);
                return connection;
         }
docs: Opens an {@link java.net.HttpURLConnection} with parameters.
  
  @param url
  @return an open connection
  @throws IOException