attributes.add(new SimpleAttribute(USER_LAST_NAME, user.getLastName()));
}
// TODO: GTNPORTAL-2358 Change once displayName will be available as part of Organization API
if (user instanceof UserImpl) {
UserImpl userImpl = (UserImpl) user;
if (userImpl.getDisplayName() != null) {
attributes.add(new SimpleAttribute(USER_DISPLAY_NAME, ((UserImpl) user).getDisplayName()));
} else {
removeDisplayNameIfNeeded(am, user);
}