@Override
    public PersonAttributes getPerson(final String uid, final Set<PersonAttributes> resultPeople, final PersonAttributeDaoFilter filter) {
        if (!this.isEnabled()) {
            return null;
        }
        val seed = toSeedMap(uid);
        val people = getPeopleWithMultivaluedAttributes(seed, filter, resultPeople);
        var person = getSinglePerson(people);
        if (person == null) {
            return null;
        }
        if (person.getName() == null) {
            person = new SimplePersonAttributes(uid, person.getAttributes());
        }

        return person;
    }
This is {@link AbstractDefaultAttributePersonAttributeDao}.

@author Misagh Moayyed
@since 7.1.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/attribute/AbstractDefaultAttributePersonAttributeDao.java