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);
}
}