protected HttpURLConnection createConnection(String uri) throws IOException {
  URL url=new URL(createUri(uri));
  return (HttpURLConnection)url.openConnection();
}

protected HttpURLConnection createConnection ( String uri ) throws IOException { URL url = new URL ( createUri ( uri ) ) ; return ( HttpURLConnection ) url . openConnection ( ) ; }
create connection to uri
