Transferable clipData = clipboard.getContents(clipboard);
if (clipData != null) {
if (clipData.isDataFlavorSupported(DataFlavor.stringFlavor)) {
String xml = (String) (clipData.getTransferData(
DataFlavor.stringFlavor));
FlameMovie movie = new FlameMovieReader(prefs).readMovieFromXML(xml);
if (movie != null) {
randomBatch.add(0, new MovieThumbnail(movie, null));
currMovie = movie;
updateThumbnails();
}