} 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),
adjustToPosition(direction, toPositions.get(i)));
} else if (columnGroupMoved && !multipleColumnsMoved) {
command = new ReorderColumnGroupCommand(
columnHideShowLayer, fromPositions.get(i)