}
}
private void handleOption(final Tag tag, final AttributeSet attr) {
FormOption option = null;
FormOptionGroup currentGroup = (selectModel != null) ? selectModel
.getRootOptionGroup().getCurrentGroup() : null;
if (Tag.OPTION.equals(tag)) {
option = new FormOption(currentGroup, attr);
openedBlocks.add(Tag.OPTION);
} else if (Tag.OPTGROUP.equals(tag)) {
currentGroup = new FormOptionGroup(currentGroup, attr);
option = currentGroup;
}
if (option != null && selectModel != null) {
selectModel.addOption(option);