seam.reset().ignoreNonResolvable().use("entityManager", getEm())
.use("session", getSession());
}
private TransMemory createTMFromFile(String file) throws Exception {
TransMemoryDAO transMemoryDAO = seam.autowire(TransMemoryDAO.class);
TransMemory tm = new TransMemory();
tm.setSlug("new-tm");
tm.setDescription("New test tm");
transMemoryDAO.makePersistent(tm);
populateTMFromFile(tm, file);
return tm;
}