protected Map<String, Object> getDefaults() {
        Map<String, Object> defaults = new HashMap<String, Object>();
        defaults.put(FILTER_CHAIN_RESOLVER_NAME, new IniFilterChainResolverFactory());
        defaults.put(SHIRO_FILTER_CONFIG_NAME, new ShiroFilterConfiguration());
        return defaults;
    }
Allows for configuration via a direct {@link Ini} instance instead of via
{@link #getConfigLocations() config locations}.
<p/>
If the specified instance is null or empty, the fallback/default resource-based configuration will be used.

@param ini the ini instance to use for creation.
web/src/main/java/org/apache/shiro/web/env/IniWebEnvironment.java