code: private static Document loadHTML(URL url, boolean useNamespace) {
  		InputStream stream = null;
  		try {
  			stream = url.openConnection().getInputStream();
  			return loadHTML(new InputSource(stream), useNamespace);
  		} catch (Exception e) {
  			throw new DomException(e);
  		} finally {
  			close(stream);
  		}
  	}
docs: Helper method for HTML loading from URL.
  
  @param url HTML document hyper source,
  @param useNamespace flag true if loaded document instance should have name space support.
  @return newly created and loaded document instance.