Long id = conf.getConfiguration_id();
tx.begin();
try {
conf = getEntityManager().find(Configuration.class, id);
getEntityManager().remove(conf);
tx.commit();
} catch (Exception e) {
tx.rollback();
throw new Exception(e.getMessage());
}
result = q.getResultList();