String passwordHash = null;
if (passwordSaltProperty.isSet()) {
String encodedSalt = (String) passwordSaltProperty.getValue(user);
if (encodedSalt == null) {
throw new IdentityManagementException(
"A @PasswordSalt property was found on entity " + user
+ ", but it contains no value");
}
passwordHash =