@Override
protected void doEncodeEnd(ResponseWriter writer, FacesContext context,
UIComponent component) throws IOException {
UISortableControl control = (UISortableControl) component;
Mode mode = control.getMode();
if (mode == null) {
mode = SERVER;
}
RendererCommand rendererCommand = commands[mode.ordinal()];
if (rendererCommand != null) {
rendererCommand.encodeMarkup(writer, context, control);
}
}