default boolean containsAttribute(final String name) {
        return getAttributes().containsKey(name);
    }
Contains attribute by name.

@param name the name
@return true or false
api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/principal/Principal.java