@Override
    public void destroy() {
        LOGGER.trace("Closing attribute repositories, if any");
        findAttributeRepositories(AutoCloseable.class::isInstance)
            .map(AutoCloseable.class::cast)
            .forEach(Unchecked.consumer(AutoCloseable::close));
    }
This is {@link DefaultPersonDirectoryAttributeRepositoryPlan}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-person-directory-core/src/main/java/org/apereo/cas/persondir/DefaultPersonDirectoryAttributeRepositoryPlan.java