boolean enabled = true;
Collection<GrantedAuthority> authSet = this
.loadUserAuthorities(userInfo.getAuthorities());
List<String> attributes = userInfo.getAttributes();
UserStatusDetailsImpl userStatusDetailsImpl = new UserStatusDetailsImpl(
username, password, enabled, authSet);
userStatusDetailsImpl.setAttributes(attributes);
userStatusDetailsImpl.setId(userInfo.getId());
userStatusDetailsImpl.setDisplayName(displayName);
userStatusDetailsImpl.setScopeId(userInfo.getScopeId());
return userStatusDetailsImpl;
}