private void swapWithNextLevel(int level){
  List<DataApprovalLevel> dataApprovalLevels=getAllDataApprovalLevels();
  int index=level - 1;
  DataApprovalLevel d2=dataApprovalLevels.get(index);
  DataApprovalLevel d1=dataApprovalLevels.get(index + 1);
  dataApprovalLevels.set(index,d1);
  dataApprovalLevels.set(index + 1,d2);
  update(d1,index);
  update(d2,index + 1);
}

private void swapWithNextLevel ( int level ) { List < DataApprovalLevel > dataApprovalLevels = getAllDataApprovalLevels ( ) ; int index = level - 1 ; DataApprovalLevel d2 = dataApprovalLevels . get ( index ) ; DataApprovalLevel d1 = dataApprovalLevels . get ( index + 1 ) ; dataApprovalLevels . set ( index , d1 ) ; dataApprovalLevels . set ( index + 1 , d2 ) ; update ( d1 , index ) ; update ( d2 , index + 1 ) ; }
swaps a data approval level with the next higher level .
