@Override public void saveNewCategory(final Long parentCategoryId, final String name, final String description) throws DataSourceException { try { LOG.debug("Adding new category: " + name); final long parentId = normalizeCategoryId(parentCategoryId); final String displayStyle = "default"; mbCategoryServiceContext.setAddGroupPermissions(true); mbCategoryServiceContext.setAddGuestPermissions(true); MBCategoryServiceUtil.addCategory(parentId, name, description, displayStyle, null, null, null, 0, false, null, null, 0, null, false, null, 0, false, null, null, false, false, mbCategoryServiceContext); } catch (final NestableException e) { LOG.error("Cannot persist category", e); throw new DataSourceException(e); } }