dropdownMenu.addMenuElement(preselectionAsString, preselectionAsString);
dropdownMenu.addMenuElement("", "");
  protected DropdownMenu getDropdownMenu(      Object preselection,       String name,      Object entity,      EntityPath path,      EntityBrowser browser,      IWContext iwc)  {    Map options = (optionProvider == null) ? new HashMap(0) : optionProvider.getOptions(entity,path,browser,iwc);      DropdownMenu dropdownMenu = new DropdownMenu(name);    Iterator iterator = options.entrySet().iterator();    while (iterator.hasNext()) {      Map.Entry option = (Map.Entry) iterator.next();      String value = option.getKey().toString();      String display = option.getValue().toString();      // key is option, value is option      dropdownMenu.addMenuElement(value, display);    }    // set preselection    if (preselection != null) {      // sometimes the preselection does not exist,       // add to options without localization      String preselectionAsString = preselection.toString();      if (! options.containsKey(preselectionAsString)) {        dropdownMenu.addMenuElement(preselectionAsString, preselectionAsString);      }      dropdownMenu.setSelectedElement(preselectionAsString);    }    return dropdownMenu;  }