throws Exception {
List l = ((UserAttributesForm)form).getUserAttributeValueItems();
SessionInfo sessionInfo = getSessionInfo(request);
User u = sessionInfo.getUser();
for(Iterator i = l.iterator(); i.hasNext(); ) {
AttributeValueItem item = (AttributeValueItem)i.next();
if(item.getDefinition().getVisibility() == AttributeDefinition.USER_OVERRIDABLE_ATTRIBUTE ||
item.getDefinition().getVisibility() == AttributeDefinition.USER_CONFIDENTIAL_ATTRIBUTE) {
Property.setProperty(new UserAttributeKey(u.getPrincipalName(), item.getDefinition().getName(), u.getRealm()
.getResourceId()), item.getDefinition().formatAttributeValue(item.getValue()), sessionInfo);
}
}
sessionInfo.setUser(u);
return cleanUpAndReturnToReferer(mapping, form, request, response);
}