@SuppressWarnings({"unchecked"})
    @Override
    protected Map<String, ?> createDefaults(Ini ini, Ini.Section mainSection) {
        Map defaults = super.createDefaults(ini, mainSection);
        //add the default filters:
        Map<String, Filter> defaultFilters = DefaultFilter.createInstanceMap(null);
        defaults.putAll(defaultFilters);
        return defaults;
    }
Simply returns <code>new {@link DefaultWebSecurityManager}();</code> to ensure a web-capable
{@code SecurityManager} is available by default.

@return a new web-capable {@code SecurityManager} instance.
web/src/main/java/org/apache/shiro/web/config/WebIniSecurityManagerFactory.java