boolean checkFilters(Headline headline)
    {
        if (_regexFilter == null || _regexFilter.equals(""))
        {
            return true;
        }
        StringBuilder s = new StringBuilder();
        s.append("  ");
        s.append(((headline.getAttribution() == null) ? " " : headline.getAttribution()));
        s.append("  |  ");
        s.append(((headline.getTopicCodes() == null) ? " " : headline.getTopicCodes()));
        s.append("  |  ");
        s.append(((headline.getCompanyCodes() == null) ? " " : headline.getCompanyCodes()));
        s.append("  |  ");
        s.append(((headline.getProdCodes() == null) ? " " : headline.getProdCodes()));
        s.append("  |  ");
        s.append(((headline.getLang() == null) ? " " : headline.getLang()));
        s.append("  ");

        String headlineStr = s.toString();
        return headlineStr.matches(_regexFilter);
    }