docs: @Api
  	public void setRoles(Map<String, List<AuthorizationInfo>> roles) {
  		Map<String, List<NamedRoleInfo>> namedRoles = new HashMap<String, List<NamedRoleInfo>>();
  		for (String ldapRole : roles.keySet()) {
  			DN dn;
  			List<AuthorizationInfo> auth = roles.get(ldapRole);
  			NamedRoleInfo role = new NamedRoleInfo();
  			role.setAuthorizations(auth);
  			try {
  				dn = new DN(ldapRole);
  				role.setName(dn.getRDN().getAttributeValues()[0]);
  			} catch (LDAPException e) {
  				role.setName(ldapRole);
  			}
  			namedRoles.put(ldapRole, Collections.singletonList(role));
  		}
  		setNamedRoles(namedRoles);
  	}