code: protected URLConnection createConnection(URL url) throws IOException
      {
          URLConnection con = url.openConnection();
          con.setRequestProperty("User-Agent", USER_AGENT);
          return con;
      }
docs: Creates and configures the URL connection.
  @param url the target URL
  @return the created connection instance
  @throws IOException