public Map<String, String> getOptionMap() { Map<String, String> ret = new HashMap<String, String>(); for (OptionField opt : optionFields) { ret.put(opt.getName(), opt.getValue()); } return ret; }