int toPosition = adjustToPosition(direction,
toPositions.get(i).intValue());
command = new ColumnReorderCommand(columnHideShowLayer,
fromPosition, toPosition);
} else if (columnGroupMoved && multipleColumnsMoved) {
command = new ReorderColumnsAndGroupsCommand(
columnHideShowLayer, fromPositions.get(i),
adjustToPosition(direction, toPositions.get(i)));
} else if (!columnGroupMoved && multipleColumnsMoved) {
command = new MultiColumnReorderCommand(
columnHideShowLayer, fromPositions.get(i),