entry.setCommentsEnabled(allowComments.equals("1"));
entry.setTrackBacksEnabled(allowPings.equals("1"));
for (String categoryStr : categories) {
if(categoryStr != null && categoryStr.trim().length() > 0) {
Category category = new Category(categoryStr.trim(), categoryStr.trim());
DAOFactory factory = DAOFactory.getConfiguredFactory();
CategoryDAO dao = factory.getCategoryDAO();
dao.addCategory(category, blog);
blog.addCategory(category);
entry.addCategory(category);