private static AbstractAggregatingDefaultQueryPersonAttributeDao getAggregateAttributeRepository(
            final CasConfigurationProperties casProperties) {
            val properties = casProperties.getAuthn().getAttributeRepository();
            if (properties.getCore().getAggregation() == PrincipalAttributesCoreProperties.AggregationStrategyTypes.CASCADE) {
                val dao = new CascadingPersonAttributeDao();
                dao.setAddOriginalAttributesToQuery(true);
                dao.setStopIfFirstDaoReturnsNull(properties.getCore().isStopCascadingWhenNoInitialResults());
                return dao;
            }
            return new MergingPersonAttributeDaoImpl();
        }
This is {@link CasPersonDirectoryConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-person-directory/src/main/java/org/apereo/cas/config/CasPersonDirectoryConfiguration.java