if (idValue instanceof Long) {
id = ((Long)idValue).longValue();
} else {
id = Long.valueOf(idValue.toString()).longValue();
}
final User user = identitySession.loadUser(id);
if (user == null) {
context.setError("Error loading user", "No user was found with an ID of " + id);
return;
}
targetExpression.setValue(elContext, user);