for (CategoryType categoryType : categoriesType.getCategory()) {
Category category = new Category(categoryType.getId(), categoryType.getName());
category.setBlog(blog);
category.setTags(categoryType.getTags());
categoryBuilder.addCategory(category);
}
} catch (Exception e) {
log.error(e.getMessage(), e);
e.printStackTrace();
throw new PersistenceException(e.getMessage());