// constructed by passing both a UserAgentContext
// and an HtmlRendererContext in this case, so
// that form.submit() can take effect.
DocumentBuilderImpl builder = new DocumentBuilderImpl(this.uacontext, this);
String charset = org.lobobrowser.util.Urls.getCharset(connection);
InputSourceImpl is = new InputSourceImpl(bin, actualURI, charset);
this.document = (HTMLDocumentImpl) builder.parse(is);
} finally {
in.close();
}
} catch(Exception err) {