public SimplePersonAttributes canonicalize(final CaseCanonicalizationMode mode) {
        val newName = mode.canonicalize(getName());
        return new SimplePersonAttributes(newName, getAttributes());
    }
Canonicalize simple person attributes.

@param mode the mode
@return the simple person attributes
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/attribute/SimplePersonAttributes.java