synchronized (this) {
// first, call destroy of all current filters
if (chainsInitialized) {
for (SecurityFilterChain chain : getFilterChains()) {
for (Filter filter: chain.getFilters()) {
filter.destroy();
}
}
}
// empty cache since filter config will change
securityManager.getAuthenticationCache().removeAll();