// Get a EntityManager instance
em = EntityManagerFactorySingleton.getInstance().createEntityManager();
// Persist the file informations
em.persist(informations);
} catch (Exception e) {
throw new FDRException(e);
} finally {
// Release the EntityManager
if (em != null) {
em.close();
}