public void create(Comment comment) throws RollbackFailureException, Exception {
        EntityManager em = null;
        try {
            utx.begin();
            em = getEntityManager();
            Article newsID = comment.getNewsID();
            if (newsID != null) {
                newsID = em.getReference(newsID.getClass(), newsID.getArticleID());
                comment.setNewsID(newsID);
            }
            em.persist(comment);
            if (newsID != null) {
                newsID.getCommentList().add(comment);
                newsID = em.merge(newsID);
            }
            utx.commit();
        } catch (Exception ex) {
            try {
                utx.rollback();
            } catch (Exception re) {
                throw new RollbackFailureException("An error occurred attempting to roll back the transaction.", re);
            }
            throw ex;
        } finally {
            if (em != null) {
                em.close();
            }
        }
    }