@Override
        public void destroy() {
            items.forEach(Unchecked.consumer(entry -> {
                if (entry instanceof final DisposableBean disposable) {
                    disposable.destroy();
                }
                if (entry instanceof final Closeable closeable) {
                    IOUtils.closeQuietly(closeable);
                }
            }));
            items.clear();
        }
Include entries and import them into the container.

@param entry the entry
@return the bean container
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/beans/BeanContainer.java