StringTokenizer tokenizer = new StringTokenizer(line, ";");
String title = tokenizer.nextToken();
String dateStr = tokenizer.nextToken();
Date releaseDate = Movie.parseReleaseDate(dateStr);
int runningTime = 0;
try {
runningTime = Integer.parseInt(tokenizer.nextToken());
} catch(java.lang.NumberFormatException e){
System.err.print("Exception parsing running time for ");
System.err.println(title);
}
String rating = tokenizer.nextToken();
String genres = tokenizer.nextToken();
Movie movie = new Movie(title, releaseDate, runningTime, rating,genres);
pm.makePersistent(movie);