*/
protected final void loadForm(final int index, final Tag tag) {
final String method = tag.getAttributeValue("method");
final String action = tag.getAttributeValue("action");
final Form form = new Form(this.page);
form.setBegin(index);
form.setEnd(findEndTag(index + 1, tag));
if ((method == null) || method.equalsIgnoreCase("GET")) {
form.setMethod(Form.Method.GET);
} else {
form.setMethod(Form.Method.POST);
}
if (action == null) {
form.setAction(new Address(this.base));
} else {
form.setAction(new Address(this.base, action));
}
this.page.addContent(form);
this.lastForm = form;
}