ldap/src/main/java/org/springframework/security/ldap/userdetails/LdapAuthority.java
public String getFirstAttributeValue(String name) {
		List<String> result = getAttributeValues(name);
		if (result.isEmpty()) {
			return null;
		}
		else {
			return result.get(0);
		}
	}
public String getFirstAttributeValue(String name) {
		List<String> result = getAttributeValues(name);
		if (result.isEmpty()) {
			return null;
		}
		else {
			return result.get(0);
		}
	}
Returns the first attribute value for a specified attribute

@param name
@return the first attribute value for a specified attribute, may be null