CmsXmlContentValueSequence seq = xmlcontent.getValueSequence("Option", locale);
int count = seq.getElementCount();
for (int i = 1; i <= count; i++) {
String value = getValue(VALUE_ELEMENT, i);
String text = getValue(TEXT_ELEMENT, i);
CmsSelectWidgetOption option = new CmsSelectWidgetOption(value, false, text);
options.add(option);
}
} catch (CmsException e) {
CmsSelectWidgetOption option = new CmsSelectWidgetOption("error", true, "Error: Could not load the options from '" + getConfiguration() + "'");
options.add(option);
}
LOG.debug("Returning: " + options.toString());
return options;