// skip the user manager that owns the user, we already did that
// these user managers will only save roles
if (!tmpUserManager.getSource().equals(user.getSource())
&& RoleMappingUserManager.class.isInstance(tmpUserManager)) {
try {
RoleMappingUserManager roleMappingUserManager = (RoleMappingUserManager) tmpUserManager;
roleMappingUserManager.setUsersRoles(user.getUserId(), user.getSource(),
RoleIdentifier.getRoleIdentifiersForSource(user.getSource(),
user.getRoles()));
}
catch (UserNotFoundException e) {
this.logger.debug("User '" + user.getUserId() + "' is not managed by the usermanager: "