protected void buildChains(FilterChainManager manager, Ini ini) { //filters section: Ini.Section section = ini.getSection(FILTERS); if (!CollectionUtils.isEmpty(section)) { String msg = "The [{}] section has been deprecated and will be removed in a future release! Please " + "move all object configuration (filters and all other objects) to the [{}] section."; log.warn(msg, FILTERS, IniSecurityManagerFactory.MAIN_SECTION_NAME); } Map<String, Object> defaults = new LinkedHashMap<String, Object>(); Map<String, Filter> defaultFilters = manager.getFilters(); //now let's see if there are any object defaults in addition to the filters //these can be used to configure the filters: //create a Map of objects to use as the defaults: if (!CollectionUtils.isEmpty(defaultFilters)) { defaults.putAll(defaultFilters); } //User-provided objects must come _after_ the default filters - to allow the user-provided //ones to override the default filters if necessary. Map<String, ?> defaultBeans = getDefaults(); if (!CollectionUtils.isEmpty(defaultBeans)) { defaults.putAll(defaultBeans); } Map<String, Filter> filters = getFilters(section, defaults); //add the filters to the manager: registerFilters(filters, manager); //urls section: section = ini.getSection(URLS); createChains(section, manager); }