// Check response
if ( con.getResponseCode() > 299 ) {
handleError( con );
}
return new HttpInputStreamWrapper( con.getInputStream(), con );
} catch ( MalformedURLException e ) {
throw new EsuException( "Invalid URL", e );
} catch ( IOException e ) {
throw new EsuException( "Error connecting to server", e );