protected void encodeListItems(FacesContext context, UIComponent component, ListType listType) throws IOException {
AbstractList list = (AbstractList) component;
try {
ItemsEncoder itemsEncoder = getItemsEncoderByType(listType);
SequenceRendererHelper rendererHelper = new SequenceRendererHelper(list);
list.walk(context, itemsEncoder, rendererHelper);
if (!rendererHelper.hasWalkedOverRows()) {
itemsEncoder.encodeFakeItem(context, component);
}
} catch (FacesException e) {