String listValue = (String) params.get("listValue");
while (itt.hasNext()) {
Object optGroupBean = itt.next();
stack.push(optGroupBean);
Object tmpKey = stack.findValue(listKey != null ? listKey : "top");
String tmpKeyStr = StringUtils.defaultString(tmpKey.toString());
Object tmpValue = stack.findValue(listValue != null ? listValue : "top");
String tmpValueStr = StringUtils.defaultString(tmpValue.toString());
boolean selected = ContainUtil.contains(value, tmpKeyStr);
writeOption(tmpKeyStr, tmpValueStr, selected);