public void encodeItemsContainer(FacesContext facesContext, UIComponent component, List<ClientSelectItem> clientSelectItems) throws IOException {
ResponseWriter responseWriter = facesContext.getResponseWriter();
responseWriter.startElement(HtmlConstants.DIV_ELEM, component);
responseWriter.writeAttribute(HtmlConstants.ID_ATTRIBUTE, component.getClientId() + "Items", null);
AutocompleteMode mode = (AutocompleteMode) component.getAttributes().get("mode");
if (!isAutocomplete(component) || (mode != null && mode == AutocompleteMode.client)) {
List<Object> fetchValues = new ArrayList<Object>();
this.encodeItems(facesContext, component, clientSelectItems);
}
responseWriter.endElement(HtmlConstants.DIV_ELEM);