}
private void syncAuthorizable(ExternalIdentity externalUser, Authorizable authorizable)
throws RepositoryException, SyncException, ExternalIdentityException {
for (ExternalIdentityRef externalGroupRef : externalUser.getDeclaredGroups()) {
ExternalIdentity id = idp.getIdentity(externalGroupRef);
if (id instanceof ExternalGroup) {
ExternalGroup externalGroup = (ExternalGroup) id;
String groupId = externalGroup.getId();
Group group;
Authorizable a = userManager.getAuthorizable(groupId);