setCredentials(Long.valueOf(userId), newUsername, encNewPassword);
updateSecurityContextIfNecessary(oldUsername, newUsername, newRawPassword, false);
}
catch(final EntityNotFoundException nfe) {
throw new ChangeUserCredentialsFailedException("Unable to set user credentials: User of id: " + userId
+ " not found");
}
}