HttpServletResponse response) throws Exception {
ModerationMaintActionForm form = (ModerationMaintActionForm) actionForm;
EntityManager em = JpaConnection.getInstance().getCurrentEntityManager();
JSONEscapeObject json = new JSONEscapeObject();
Iterator<?> iterator = null;
Content content = (Content) em.find(Content.class, Format.getLong(form.getContentId()));
ContentLanguage contentLanguage = null;
for (ContentLanguage language : content.getContentLanguages()) {
if (language.getSiteProfileClass().getSiteProfileClassId().equals(form.getSiteProfileClassDefaultId())) {
contentLanguage = language;
}
}
json.put("contentTitle", contentLanguage.getContentTitle());
json.put("contentShortDesc", contentLanguage.getContentShortDesc());
json.put("contentDesc", contentLanguage.getContentDesc());
iterator = content.getComments().iterator();
Vector<JSONEscapeObject> comments = new Vector<JSONEscapeObject>();
while (iterator.hasNext()) {
Comment comment = (Comment) iterator.next();
JSONEscapeObject jsonComment = new JSONEscapeObject();