if (!columnGroupMoved && !multipleColumnsMoved) {
int fromPosition = fromPositions.get(i).get(0)
.intValue();
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)));