}
private void updatePrincipalGroups(Principal principal) {
if (principal instanceof NuxeoPrincipalImpl) {
NuxeoPrincipalImpl nuxeoPrincipal = (NuxeoPrincipalImpl) principal;
ComputedGroupsService computedGroupsService = Framework.getLocalService(ComputedGroupsService.class);
computedGroupsService.updateGroupsForUser(nuxeoPrincipal);
}
}