void addScope(@Observes final BeforeBeanDiscovery event) {
        contexts.forEach(ctx -> event.addScope(ctx.getScope(), true, true));
    }
intercept session destroy session listeners and destroy the beans

@param sessionListeners
@param sm
support/jakarta-ee/src/main/java/org/apache/shiro/ee/cdi/ShiroSessionScopeExtension.java