40         if (
user.getAttributes() != null) {
    41             for (Map.Entry<String, List<String>> attr : 
user.getAttributes().entrySet()) {
    42                 List<String> attrValue = attr.getValue();
    43                 if (attrValue != null && attrValue.size() > 0) {
    44                     attributes.put(attr.getKey(), attrValue.get(0));
    47                 if (attrValue != null && attrValue.size() > 1) {
    48                     logger.warnf(
"There are more values for attribute '%s' of user '%s' . Will display just first value", attr.getKey(), 
user.getUsername());
 UserModel user
Definition: ProfileBean.java:34
 
static final Logger logger
Definition: ProfileBean.java:32
 
final Map< String, String > attributes
Definition: ProfileBean.java:35