@Override
@PreAuthorize("hasPermission(#componentId, 'COMPONENT', 'GeneralPermission.ADMIN')")
public void createNewBranch(long componentId, long sectionId, String title, String description) {
Section section = sectionDao.get(sectionId);
Branch branch = new Branch(title, description);
branch.setSection(section);
section.addOrUpdateBranch(branch);
sectionDao.saveOrUpdate(section);
Group registeredUsersGroup = groupDao.getGroupByName(AdministrationGroup.USER.getName());
Collection<Group> groups = Arrays.asList(registeredUsersGroup);
PermissionChanges permissionChanges = new PermissionChanges(BranchPermission.VIEW_TOPICS, groups,
Collections.<Group>emptyList());
permissionService.changeGrants(branch, permissionChanges);
}