// get options from the markup
IValueMap valueMap = tag.getAttributes();
// Iterate over valid options
for (String s : optionNames) {
if (valueMap.containsKey(s)) {
// if option isn't set programmatically, set value from markup
if (!attributes.containsKey(s) && !parameters.containsKey(s))
setValue(s, valueMap.getString(s));
// remove attribute - they are added in super.onComponentTag()
// to