FormControl control;
String name = e.getNodeName();
if (name.equals("input")) {
String type = e.getAttribute("type");
if (type.equals("text") || type.equals("password")) {
control = new TextControl(form, e);
} else if (type.equals("hidden")) {
control = new HiddenControl(form, e);
} else if (type.equals("button") || type.equals("submit")
|| type.equals("reset")) {
control = new ButtonControl(form, e);
} else if (type.equals("checkbox") || type.equals("radio")) {
control = new CheckControl(form, e);
} else {
return null;
}
} else if (name.equals("textarea")) {
control = new TextControl(form, e);
} else if (name.equals("button")) {
control = new ButtonControl(form, e);
} else if (name.equals("select")) {
control = new SelectControl(form, e);
} else {