existingUser = userDetailsDao.findByEmail(attribute.getValues().get(0).toLowerCase());
break;
}
}
if (existingUser == null) {
throw new OpenIDUserNotFoundException("User not found for OpenID: " + token.getName(), token);
} else {
existingUser.getOpenIdIdentifiers().add(token.getIdentityUrl());
userService.setDefaultActiveOrganization(existingUser);
userDetailsDao.update(existingUser);
}