protected void addDefaultFilters(boolean init) {
        for (DefaultFilter defaultFilter : DefaultFilter.values()) {
            addFilter(defaultFilter.name(), defaultFilter.newInstance(), init, false);
        }
    }
Initializes the filter by calling <code>filter.init( {@link #getFilterConfig() getFilterConfig()} );</code>.

@param filter the filter to initialize with the {@code FilterConfig}.
web/src/main/java/org/apache/shiro/web/filter/mgt/DefaultFilterChainManager.java