writer.write(AjaxInternalUtils.encodeJavaScriptString(suggestItem.getValue()));
writer.write("\"");
if (suggestItem.getExtensionItems() != null) {
writer.write(", values: [");
for (int j = 0; j < suggestItem.getExtensionItems().size(); j++) {
AutoSuggestExtensionItem item = suggestItem.getExtensionItems().get(j);
if (j > 0) {
writer.write(", ");
}
writer.write("{id: \"");
writer.write(item.getId());
writer.write("\", value: \"");
writer.write(AjaxInternalUtils.encodeJavaScriptString(item.getValue()));
writer.write("\"}");
}
writer.write("]");
}
if (suggestItem.getNextFocusId() != null) {