OptionGroupModel husbands = new OptionGroupModelImpl("Husbands", false,
TapestryInternalUtils.toOptionModels("Fred,Barney"));
Select select = new Select();
select.setModel(new SelectModelImpl(Collections.singletonList(husbands),
TapestryInternalUtils.toOptionModels("Wilma,Betty")));
select.setValueEncoder(new StringValueEncoder());
select.setValue("Fred");
MarkupWriter writer = new MarkupWriterImpl(new XMLMarkupModel(), null);