// Load the xmlcontent containing the options
CmsFile xmlfile = cms.readFile(cms.readResource(getConfiguration()));
xmlcontent = CmsXmlContentFactory.unmarshal(cms, xmlfile);
// loop through the options
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);