@Override
    public boolean containsAttribute(final String name) {
        CommonHelper.assertNotNull("name", name);
        return this.attributes.containsKey(name);
    }
{@inheritDoc}

Check to see if profile contains attribute name.
pac4j-core/src/main/java/org/pac4j/core/profile/BasicUserProfile.java