private static DataFlavor[] convertToArray(List<DataFlavor> dataFlavourList){
  DataFlavor[] array=new DataFlavor[dataFlavourList.size()];
  dataFlavourList.toArray(array);
  return array;
}

private static DataFlavor [ ] convertToArray ( List < DataFlavor > dataFlavourList ) { DataFlavor [ ] array = new DataFlavor [ dataFlavourList . size ( ) ] ; dataFlavourList . toArray ( array ) ; return array ; }
convert dataflavor list to array .
