private FilterDto parseFilter(String initLine, BufferedReader br) throws IOException {
        FilterDto filterDto = new FilterDto();
        Parameter param = new Parameter();

        Matcher matcher;
        String currentLine = initLine;
        while ((currentLine = br.readLine()) != null &&
                currentLine.contains("filter") && !currentLine.contains(".id="))
        {
            matcher = keyValPattern.matcher(currentLine);
            if (matcher.matches()){
                String key = matcher.group(1);
                String value = matcher.group(2);
                if (key.contains("class")){
                    filterDto.implementation = value;
                } else if (key.contains("param.type")){
                    param.type = value;
                } else if (key.contains("param.value")){
                    param.value = value;
                    filterDto.params.add(param);
                    param = new Parameter();
                }
            }
        }

        return filterDto;
    }