public List<String> getAttributeValue() {
        val value = principal.getAttributes().get(attribute);
        return CollectionUtils.toCollection(value, ArrayList.class);
    }
Gets the first attribute value from the principal.

@return the attribute value
core/cas-server-core-notifications-api/src/main/java/org/apereo/cas/notifications/mail/EmailMessageRequest.java