@Override
    protected List<PersonAttributes> getPeopleForQuery(final String seedValue, final String queryUserName) {
        if (seedValue != null && seedValue.contains(PersonAttributeDao.WILDCARD)) {
            var seedPattern = compilePattern(seedValue);
            val results = new ArrayList<PersonAttributes>();
            for (val attributesEntry : this.backingMap.entrySet()) {
                val attributesKey = attributesEntry.getKey();
                val keyMatcher = seedPattern.matcher(attributesKey);
                if (keyMatcher.matches()) {
                    val attributes = attributesEntry.getValue();
                    if (attributes != null) {
                        val person = this.createPerson(null, queryUserName, attributes);
                        results.add(person);
                    }
                }
            }
            if (results.isEmpty()) {
                return null;
            }
            return results;
        }
        val attributes = this.backingMap.get(seedValue);
        if (attributes == null) {
            return null;
        }
        val person = createPerson(seedValue, queryUserName, attributes);
        val list = new ArrayList<PersonAttributes>();
        list.add(person);
        return list;
    }
Sets backing map.

@param backingMap the backing map
support/cas-server-support-person-directory-core/src/main/java/org/apereo/cas/persondir/MappablePersonAttributeDao.java