for (int i = filter.size(); (i >= 0) && (value == null); i--) { value = getTypedPropertyWithDefault(key + filter.getFilterSuffix(i), theClass); log.info("Value for "+key + filter.getFilterSuffix(i) + "=" + value);
for (int i = filter.numOfSelectors(); (i >= 0) && (value == null); i--) { MapConfiguration varsConf = null; if (filter.hasVariables()) { varsConf = new MapConfiguration(filter.getVariables()); filteredConf = new CompositeConfiguration(); filteredConf.addConfiguration(properties); filteredConf.addConfiguration(varsConf); } value = getTypedPropertyWithDefault(key + filter.getFilterSuffix(i), theClass, filteredConf); if (varsConf != null) { properties.removeConfiguration(varsConf); } log.debug("Value for "+key + filter.getFilterSuffix(i) + "=" + value);
    public Object getPropertyWithFilter(String key, Filter filter, Class theClass, Object defaultValue) {        Object value = null;        for (int i = filter.size(); (i >= 0) && (value == null); i--) {            value = getTypedPropertyWithDefault(key + filter.getFilterSuffix(i), theClass);            log.info("Value for "+key + filter.getFilterSuffix(i) + "=" + value);        }        return value;    }