code: public void setRoles(List<NamedRoleInfo> roles) {
  		this.roles = roles;
  		List<AuthorizationInfo> authorizations = new ArrayList<AuthorizationInfo>();
  		for (NamedRoleInfo role : roles) {
  			authorizations.addAll(role.getAuthorizations());
  		}
  		super.setAuthorizations(authorizations);
  	}
docs: Set the role info for this user. If set, this will be used to set the user's authorizations.
  
  @param roles the roles
  @since 1.10.0