(OptionModel) new OptionModelImpl("Fred", false, "fred", "class", "pixie"));
Select select = new Select();
select.setModel(new SelectModelImpl(null, options));
select.setValueEncoder(new StringValueEncoder());
select.setValue("barney");
MarkupWriter writer = new MarkupWriterImpl(new XMLMarkupModel());
writer.element("select");