role.setName((String) entry.get("character"));
em.persist(role);
movie.getRoles().add(role);
}
else if ("Director".equals(jobName)) {
Director director = new Director();
director.setId(id);
director.getMovies().add(movie);
doImportPerson(director);
movie.setDirector(director);
}
else {
logger.info("Could not add person with job {} {}", jobName, entry);